From 6854bf69a826aad2129272f2504a5be789a0912b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 6 Mar 2006 18:22:26 +0000 Subject: [PATCH] Call base4_encode() with "1" for its new "pad" arg so that the Proxy-Authorization header is properly padded with trailing '=' chars. --- socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socket.c b/socket.c index 47f7ce16..c850cd36 100644 --- a/socket.c +++ b/socket.c @@ -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'; -- 2.34.1