auth challenge only on use_proxy

This commit is contained in:
Muki Kiboigo
2026-02-27 09:00:27 -08:00
parent 91254eb365
commit 5107395917

View File

@@ -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 = .{