Skip to content

Commit 8dfefad

Browse files
authored
fix(fanout): commit request headers before fanout handoff (#1222)
1 parent bdb343c commit 8dfefad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/fastly/builtins/fastly.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ bool Fastly::createFanoutHandoff(JSContext *cx, unsigned argc, JS::Value *vp) {
243243
}
244244
auto grip_upgrade_request = &request_value.toObject();
245245

246+
RootedObject request(cx, grip_upgrade_request);
247+
if (!RequestOrResponse::commit_headers(cx, request)) {
248+
return false;
249+
}
250+
246251
auto response_handle = host_api::HttpResp::make();
247252
if (auto *err = response_handle.to_err()) {
248253
HANDLE_ERROR(cx, *err);

0 commit comments

Comments
 (0)