From: Henrik Nordstrom Date: Thu, 27 Aug 2009 09:29:27 +0000 (+0200) Subject: Use the right auth header type for the context X-Git-Tag: SQUID_3_2_0_1~759^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0606266fc8b9a44b2b6afb501fb346f3e59de875;p=thirdparty%2Fsquid.git Use the right auth header type for the context --- diff --git a/src/http.cc b/src/http.cc index fc17322798..8ca5fd67a4 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1493,7 +1493,7 @@ httpFixupAuthentication(HttpRequest * request, HttpRequest * orig_request, const snprintf(loginbuf, sizeof(loginbuf), "%s%s", username, orig_request->peer_login + 1); - httpHeaderPutStrf(hdr_out, HDR_PROXY_AUTHORIZATION, "Basic %s", + httpHeaderPutStrf(hdr_out, header, "Basic %s", base64_encode(loginbuf)); return; } @@ -1506,12 +1506,12 @@ httpFixupAuthentication(HttpRequest * request, HttpRequest * orig_request, const snprintf(loginbuf, sizeof(loginbuf), SQUIDSTRINGPH ":" SQUIDSTRINGPH, SQUIDSTRINGPRINT(orig_request->extacl_user), SQUIDSTRINGPRINT(orig_request->extacl_passwd)); - httpHeaderPutStrf(hdr_out, HDR_PROXY_AUTHORIZATION, "Basic %s", + httpHeaderPutStrf(hdr_out, header, "Basic %s", base64_encode(loginbuf)); return; } - httpHeaderPutStrf(hdr_out, HDR_PROXY_AUTHORIZATION, "Basic %s", + httpHeaderPutStrf(hdr_out, header, "Basic %s", base64_encode(orig_request->peer_login)); return; }