298502 CONNECT uses same HTTP version as original request

This commit is contained in:
Michael Gorovoy 2011-07-12 19:31:13 -04:00
parent 61b2a5c751
commit dc3445cea2
1 changed files with 1 additions and 0 deletions

View File

@ -673,6 +673,7 @@ public class HttpDestination implements Dumpable
this.proxyEndPoint = proxyEndPoint;
this.exchange = exchange;
setMethod(HttpMethods.CONNECT);
setVersion(exchange.getVersion());
String serverHostAndPort = serverAddress.toString();
setURI(serverHostAndPort);
addRequestHeader(HttpHeaders.HOST, serverHostAndPort);