提交 2547f60a 编写于 作者: C chegar

6365587: Proxy-Connection header sent through tunnel

Reviewed-by: michaelm
上级 28696702
......@@ -423,7 +423,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
// Try keep-alive only on first attempt
if (!failedOnce && http.getHttpKeepAliveSet()) {
if (http.usingProxy) {
if (http.usingProxy && tunnelState() != TunnelState.TUNNELING) {
requests.setIfNotSet("Proxy-Connection", "keep-alive");
} else {
requests.setIfNotSet("Connection", "keep-alive");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册