diff options
author | Geoff Kizer <geoffrek> | 2018-03-05 23:51:32 +0300 |
---|---|---|
committer | Geoff Kizer <geoffrek> | 2018-03-05 23:51:32 +0300 |
commit | 2c3f9b264a837d4d7ccd767af6210268d406a07e (patch) | |
tree | 700bb59f4df8de4aa03f58d7b8d47ff539926794 /src/System.Net.Http | |
parent | 5c49c76471798db2dbb14c245d0c24129570b835 (diff) |
address PR feedback
Diffstat (limited to 'src/System.Net.Http')
-rw-r--r-- | src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs b/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs index e639fd72a8..81e6d59750 100644 --- a/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs +++ b/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs @@ -112,7 +112,7 @@ namespace System.Net.Http // Precalculate ASCII bytes for Host header // Note that if _host is null, this is a (non-tunneled) proxy connection, and we can't cache the hostname. string hostHeader = - ((_sslOptions == null) ? _port != DefaultHttpPort : _port != DefaultHttpsPort) ? + (_port != (_sslOptions == null ? DefaultHttpPort : DefaultHttpsPort)) ? $"{_host}:{_port}" : _host; |