mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
auth challenge only on use_proxy
This commit is contained in:
@@ -1320,7 +1320,7 @@ pub const Transfer = struct {
|
|||||||
}
|
}
|
||||||
transfer._redirecting = false;
|
transfer._redirecting = false;
|
||||||
|
|
||||||
if (status == 401 or status == 407) {
|
if ((status == 401 or status == 407) and transfer.client.use_proxy) {
|
||||||
// The auth challenge must be parsed from a following
|
// The auth challenge must be parsed from a following
|
||||||
// WWW-Authenticate or Proxy-Authenticate header.
|
// WWW-Authenticate or Proxy-Authenticate header.
|
||||||
transfer._auth_challenge = .{
|
transfer._auth_challenge = .{
|
||||||
|
|||||||
Reference in New Issue
Block a user