mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:27:15 +03:00
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 cdccb42267.
This commit is contained in:
parent
bce03fe144
commit
052f24c9b7
5 changed files with 28 additions and 31 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue