aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authorRoss Schlaikjer <[email protected]>2018-07-03 10:50:17 -0400
committerRoss Schlaikjer <[email protected]>2018-07-06 08:46:20 -0400
commitde29bd57702c41c7d8ee463362dc64bc5bff0b70 (patch)
tree751b72b5b9f2fd594d1f3b5508f8561927e4b56b /lib/inets/src/http_client
parentbd890e1859c97297a06166e5f92e8c33b1db4682 (diff)
downloadotp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.tar.gz
otp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.tar.bz2
otp-de29bd57702c41c7d8ee463362dc64bc5bff0b70.zip
Fix accidental Port assertion in resolve_authority
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc_response.erl4
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 ->