diff options
author | Ross Schlaikjer <[email protected]> | 2018-07-03 10:50:17 -0400 |
---|---|---|
committer | Ross Schlaikjer <[email protected]> | 2018-07-06 08:46:20 -0400 |
commit | de29bd57702c41c7d8ee463362dc64bc5bff0b70 (patch) | |
tree | 751b72b5b9f2fd594d1f3b5508f8561927e4b56b /lib/inets | |
parent | bd890e1859c97297a06166e5f92e8c33b1db4682 (diff) | |
download | otp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.tar.gz otp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.tar.bz2 otp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.zip |
Fix accidental Port assertion in resolve_authority
Diffstat (limited to 'lib/inets')
-rw-r--r-- | lib/inets/src/http_client/httpc_response.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_client/httpc_response.erl b/lib/inets/src/http_client/httpc_response.erl index 0931f0b4d3..dfb65a4083 100644 --- a/lib/inets/src/http_client/httpc_response.erl +++ b/lib/inets/src/http_client/httpc_response.erl @@ -457,10 +457,10 @@ get_default_port("https") -> resolve_authority(Host, Port, Path, Query, RelURI, Map) -> case maps:is_key(host, RelURI) of true -> - Port = get_port(RelURI), + Port0 = get_port(RelURI), maybe_add_query( Map#{host => maps:get(host, RelURI), - port => Port, + port => Port0, path => maps:get(path, RelURI)}, RelURI); false -> |