Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Kizer <geoffrek>2018-03-05 23:51:32 +0300
committerGeoff Kizer <geoffrek>2018-03-05 23:51:32 +0300
commit2c3f9b264a837d4d7ccd767af6210268d406a07e (patch)
tree700bb59f4df8de4aa03f58d7b8d47ff539926794 /src/System.Net.Http
parent5c49c76471798db2dbb14c245d0c24129570b835 (diff)
address PR feedback
Diffstat (limited to 'src/System.Net.Http')
-rw-r--r--src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs2
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;