Merge pull request #457 from stephanemartin/jetty-9.3.x
[Jetty-Client] fix: don't add host automaticaly on http2 request.
This commit is contained in:
commit
9116f792fd
|
@ -111,7 +111,7 @@ public abstract class HttpConnection implements Connection
|
|||
}
|
||||
|
||||
// If we are HTTP 1.1, add the Host header
|
||||
if (version.getVersion() > 10)
|
||||
if (version.getVersion() == 11)
|
||||
{
|
||||
if (!headers.containsKey(HttpHeader.HOST.asString()))
|
||||
headers.put(getHttpDestination().getHostField());
|
||||
|
|
Loading…
Reference in New Issue