]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Change the token for HTTP Basic Authentication from "basic" to "Basic".
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 18 Mar 2003 19:12:40 +0000 (19:12 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 18 Mar 2003 19:12:40 +0000 (19:12 +0000)
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.

[originally from svn r2959]

proxy.c

diff --git a/proxy.c b/proxy.c
index f3342495e0bd75732d4f58bbe3eab3dfc4ba5840..ccb1b5efe9c1735428868efa5ac0fbb8dad5a4b6 100644 (file)
--- 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);