diff --git a/src/http/Client.zig b/src/http/Client.zig index bb3fed47..d50e9a58 100644 --- a/src/http/Client.zig +++ b/src/http/Client.zig @@ -1320,7 +1320,7 @@ pub const Transfer = struct { } 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 // WWW-Authenticate or Proxy-Authenticate header. transfer._auth_challenge = .{