6365587: Proxy-Connection header sent through tunnel
Michael.McMahon at Sun.COM
Tue Feb 23 07:32:07 PST 2010
Christopher Hegarty -Sun Microsystems Ireland wrote:
> Hi Michael,
> I need a review for CR 6365587: "Proxy-Connection header sent through
> Proxy-Connection header is being sent to the http server over an SSL
> tunnel. The Proxy-Connection header is only of interest to the proxy.
> You can see in our
> sun.net.www.protocol.http.HttpURLConnection.writeRequests() that we do
> not check if we are in a tunnel situation before setting this header.
> When tunneling through a proxy then the proxy is essentially just
> forwarding the data and does not interpret it. We do not need to set
> this header and may cause issues with http servers that do not
> interpret it correctly.
> There is no regression test since it requires a https server and
> proxy, too convoluted for such a trivial change!
More information about the net-dev