Skip to content

Commit

Permalink
docs(example): fix http_proxy to use upgrades (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhickman committed Aug 19, 2022
1 parent 5a5db00 commit 84f6ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/http_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.http1_preserve_header_case(true)
.http1_title_case_headers(true)
.serve_connection(stream, service_fn(proxy))
.with_upgrades()
.await
{
println!("Failed to serve connection: {:?}", err);
Expand Down

0 comments on commit 84f6ae7

Please sign in to comment.