Explorar el Código

Send Connection instead of Proxy-Connection to parent proxy

z3APA3A hace 7 años
padre
commit
951304e18e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/auth.c

+ 1 - 1
src/auth.c

@@ -53,7 +53,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
 				if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
 			}
 			len += sprintf((char *)buf + len,
-				":%hu HTTP/1.0\r\nProxy-Connection: keep-alive\r\n", ntohs(*SAPORT(addr)));
+				":%hu HTTP/1.0\r\nConnection: keep-alive\r\n", ntohs(*SAPORT(addr)));
 			if(user){
 				len += sprintf((char *)buf + len, "Proxy-authorization: basic ");
 				sprintf((char *)username, "%.128s:%.128s", user, pass?pass:(unsigned char *)"");