fix request authentication with web bot auth

This commit is contained in:
Muki Kiboigo
2026-03-10 20:21:43 -07:00
parent fca29a8be2
commit c6c0492c33

View File

@@ -1338,7 +1338,7 @@ pub const Transfer = struct {
}
transfer._redirecting = false;
if ((status == 401 or status == 407) and transfer.client.use_proxy) {
if (status == 401 or status == 407) {
// The auth challenge must be parsed from a following
// WWW-Authenticate or Proxy-Authenticate header.
transfer._auth_challenge = .{