Skip to content

Commit

Permalink
add x-accel-buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmray committed May 21, 2024
1 parent f0bcb73 commit a3d2e74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/splithttp/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async fn down_handler(
});

let body = Body::from_stream(down_channel_receiver.map(Ok::<_, Error>));
Response::new(body)
Response::builder()
.header("X-Accel-Buffering", "no")
.body(body)
.unwrap()
}

async fn forward_channels(
Expand Down

0 comments on commit a3d2e74

Please sign in to comment.