Commit 6854bf69 authored by Wayne Davison's avatar Wayne Davison

Call base4_encode() with "1" for its new "pad" arg so that the

Proxy-Authorization header is properly padded with trailing '='
chars.
parent 293def60
......@@ -64,7 +64,7 @@ static int establish_proxy_connection(int fd, char *host, int port,
return -1;
}
base64_encode(buffer, len, authbuf);
base64_encode(buffer, len, authbuf, 1);
authhdr = "\r\nProxy-Authorization: Basic ";
} else {
*authbuf = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment