Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrooksCunningham committed Sep 10, 2024
1 parent a70f6b4 commit 94cac98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ fn dynamic_backend(mut req: Request, _resp: Response) -> Result<Response, Error>
let backend_resp = backend_req.send(&target_backend)?;

// Append the backend response to the final response
final_response.set_body(backend_resp.into_body());
final_response.set_status(backend_resp.get_status());
final_response.set_body(backend_resp.into_body());
}

// Calculate the elapsed time and set it as a response header
Expand Down

0 comments on commit 94cac98

Please sign in to comment.