Skip to content

Conversation

@mildis
Copy link
Contributor

@mildis mildis commented Oct 13, 2018

HttpClient issue the Host header with the port whenever the port is defined.
This patch only set the port when not using the default scheme port
(80 for http and 443 for https)

scheme=http, host=example.com, port=80 => Host: example.com
scheme=https, host=example.com, port=443 => Host: example.com
scheme=http, host=example.com, port=8080 => Host: example.com:8080
scheme=https, host=example.com, port=8443 => Host: example.com:8443

Change-Id: I19d238c1abd871d2f641a2643770ab8c78594d6f

HttpClient issue the Host header with the port whenever the port is defined.
This patch only set the port when not using the default scheme port
(80 for http and 443 for https)

scheme=http, host=example.com, port=80 => Host: example.com
scheme=https, host=example.com, port=443 => Host: example.com
scheme=http, host=example.com, port=8080 => Host: example.com:8080
scheme=https, host=example.com, port=8443 => Host: example.com:8443

Change-Id: I19d238c1abd871d2f641a2643770ab8c78594d6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant