Skip to content

Commit 07993d7

Browse files
elliotttJakeChampion
authored andcommitted
Review feedback
1 parent fefe8b7 commit 07993d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/js-compute-runtime/builtins/request-response.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ JSObject *Request::create(JSContext *cx, JS::HandleObject requestInstance, JS::H
16661666
return nullptr;
16671667
}
16681668

1669-
if (overrideContentLength.isBoolean() && overrideContentLength.toBoolean()) {
1669+
if (JS::ToBoolean(overrideContentLength)) {
16701670
auto res = request_handle.set_framing_headers_mode(
16711671
host_api::FramingHeadersMode::ManuallyFromHeaders);
16721672
if (auto *err = res.to_err()) {
@@ -2706,7 +2706,7 @@ bool Response::constructor(JSContext *cx, unsigned argc, JS::Value *vp) {
27062706
}
27072707

27082708
// `overrideContentLength: true` indicates that we want to set the framing mode manually.
2709-
if (overrideContentLength.isBoolean() && overrideContentLength.toBoolean()) {
2709+
if (JS::ToBoolean(overrideContentLength)) {
27102710
mode = host_api::FramingHeadersMode::ManuallyFromHeaders;
27112711
}
27122712

0 commit comments

Comments
 (0)