1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

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.

[originally from svn r2959]
This commit is contained in:
Ben Harris 2003-03-18 19:12:40 +00:00
parent 4d41247cde
commit 7f84c9f2da

View File

@ -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);