diff options
-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 -> |