-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters