From 052f24c9b7016bcb5fe3a751efb944928e1fb138 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 3 Nov 2013 10:17:26 +0000 Subject: http: Post base64 decoding tidy up Renamed copy_header_value() to Curl_copy_header_value() as this function is now non static. Simplified proxy flag in Curl_http_input_auth() when calling sub-functions. Removed unnecessary white space removal when using negotiate as it had been missed in commit cdccb422671aeb. --- lib/http_proxy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/http_proxy.c') diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 97edc486e..bf3457f6a 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -453,11 +453,12 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, (checkprefix("Proxy-authenticate:", line_start) && (407 == k->httpcode))) { - char *auth = copy_header_value(line_start); + bool proxy = (k->httpcode == 407) ? TRUE : FALSE; + char *auth = Curl_copy_header_value(line_start); if(!auth) return CURLE_OUT_OF_MEMORY; - result = Curl_http_input_auth(conn, k->httpcode, auth); + result = Curl_http_input_auth(conn, proxy, auth); Curl_safefree(auth); -- cgit v1.2.3