From: ben Date: Tue, 18 Mar 2003 19:12:40 +0000 (+0000) Subject: Change the token for HTTP Basic Authentication from "basic" to "Basic". X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/6c434e1fed8a4549674a0f6d4c21f48db2027f24 Change the token for HTTP Basic Authentication from "basic" to "Basic". According to RFC 2617, it should be case-insensitive, but some proxies (Microsoft Proxy Server in particular) erroneously reject "basic". Should fix semi-bug msproxy-denied. git-svn-id: svn://svn.tartarus.org/sgt/putty@2959 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/proxy.c b/proxy.c index f3342495..ccb1b5ef 100644 --- a/proxy.c +++ b/proxy.c @@ -519,7 +519,7 @@ int proxy_http_negotiate (Proxy_Socket p, int change) int i, j, len; sprintf(buf, "%s:%s", p->cfg.proxy_username, p->cfg.proxy_password); len = strlen(buf); - sprintf(buf2, "Proxy-Authorization: basic "); + sprintf(buf2, "Proxy-Authorization: Basic "); for (i = 0, j = strlen(buf2); i < len; i += 3, j += 4) base64_encode_atom((unsigned char *)(buf+i), (len-i > 3 ? 3 : len-i), buf2+j);