Skip to content

Commit 84f6ae7

Browse files
docs(example): fix http_proxy to use upgrades (#2953)
1 parent 5a5db00 commit 84f6ae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/http_proxy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3232
.http1_preserve_header_case(true)
3333
.http1_title_case_headers(true)
3434
.serve_connection(stream, service_fn(proxy))
35+
.with_upgrades()
3536
.await
3637
{
3738
println!("Failed to serve connection: {:?}", err);

0 commit comments

Comments
 (0)