auth challenge only on use_proxy

This commit is contained in:
Muki Kiboigo
2026-02-27 09:00:27 -08:00
parent 02198de455
commit c38d9a3098

View File

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