aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0f3bd0a06d..0931f0b4d3 100644
--- a/lib/inets/src/http_client/httpc_response.erl
+++ b/lib/inets/src/http_client/httpc_response.erl
@@ -425,11 +425,11 @@ resolve_uri(Scheme, Host, Port, Path, Query, URI) ->
resolve_uri(Scheme, Host, Port, Path, Query, URI, Map0) ->
case maps:is_key(scheme, URI) of
true ->
- Port = get_port(URI),
+ Port0 = get_port(URI),
maybe_add_query(
Map0#{scheme => maps:get(scheme, URI),
host => maps:get(host, URI),
- port => Port,
+ port => Port0,
path => maps:get(path, URI)},
URI);
false ->