sonar-gerrit-plugin
sonar-gerrit-plugin copied to clipboard
Force port only if not using scheme default
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