Send Basic vs basic for Basic HTTP auth to deal with reportedly broken implementation

This commit is contained in:
z3APA3A committed 2019-10-16 11:29:07 +03:00
1 parent 22cf9254c5
commit 9996856698
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
len += sprintf((char *)buf + len,
":%hu HTTP/1.0\r\nConnection: keep-alive\r\n", ntohs(*SAPORT(addr)));
if(user){
len += sprintf((char *)buf + len, "Proxy-authorization: basic ");
len += sprintf((char *)buf + len, "Proxy-authorization: Basic ");
sprintf((char *)username, "%.128s:%.128s", user, pass?pass:(unsigned char *)"");
en64(username, buf+len, (int)strlen((char *)username));
len = (int)strlen((char *)buf);