Skip to content

Commit

Permalink
return proxy-authenticate in Proxy auth layer
Browse files Browse the repository at this point in the history
important... as otherwise browsers fail,
given they seem to rely on that realm info to be sent
prior to it sending credentials
  • Loading branch information
GlenDC committed May 19, 2024
1 parent bc761a6 commit 2c1149b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/http_connect_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//! If you want to see the HTTP traffic in action you can of course also use telnet instead:
//!
//! ```sh
//! telnet 127.0.0.1 40001
//! telnet 127.0.0.1 62001
//! ```
//!
//! and then type:
Expand Down
2 changes: 2 additions & 0 deletions src/http/layer/proxy_auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ where
} else {
Ok(Response::builder()
.status(StatusCode::PROXY_AUTHENTICATION_REQUIRED)
.header("Proxy-Authenticate", C::SCHEME)
.body(Default::default())
.unwrap())
}
} else {
Ok(Response::builder()
.status(StatusCode::PROXY_AUTHENTICATION_REQUIRED)
.header("Proxy-Authenticate", C::SCHEME)
.body(Default::default())
.unwrap())
}
Expand Down

0 comments on commit 2c1149b

Please sign in to comment.