Skip to content

Commit

Permalink
Correct init order on struct fields (#2135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed May 17, 2024
1 parent a3a0f95 commit 93f4d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/http.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1958,8 +1958,8 @@ jsg::Promise<jsg::Ref<Response>> handleHttpRedirectResponse(
KJ_IF_SOME(parsed, jsg::Url::tryParse(location, base.asPtr())) {
auto str = kj::str(parsed.getHref());
return kj::Url::tryParse(str.asPtr(), kj::Url::Context::REMOTE_HREF, kj::Url::Options {
.allowEmpty = true,
.percentDecode = false,
.allowEmpty = true,
});
} else {
return kj::none;
Expand Down

0 comments on commit 93f4d6c

Please sign in to comment.