Skip to content

Commit ed4e225

Browse files
committed
Fix missing compat::from_fastly_response conversion in edgezero_main
The merge conflict resolution took PR15's take_finalize_sentinel code expecting an HttpResponse but left the fastly_response variable unconverted. Add the missing let mut response = compat::from_fastly_response(fastly_response) before the sentinel check.
1 parent 5f8397c commit ed4e225

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • crates/trusted-server-adapter-fastly/src

crates/trusted-server-adapter-fastly/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ fn edgezero_main(mut req: FastlyRequest, config_store: ConfigStoreHandle) {
236236
}
237237
};
238238

239+
let mut response = compat::from_fastly_response(fastly_response);
240+
239241
if !take_finalize_sentinel(&mut response) {
240242
// Apply finalize headers at the entry point so that router-level
241243
// 405/404 responses for unregistered HTTP methods (e.g. TRACE, WebDAV

0 commit comments

Comments
 (0)