aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorRoss Schlaikjer <[email protected]>2018-07-03 17:33:37 +0000
committerRoss Schlaikjer <[email protected]>2018-07-06 08:46:24 -0400
commitcf43aba758ceeb1e4f313a2fdc1e901b9c1be06a (patch)
treef97159ea9c5e4c8232141e4a80bc26cc8ad7c596 /lib/inets/src
parentde29bd57702c41c7d8ee463362dc64bc5bff0b70 (diff)
downloadotp-cf43aba758ceeb1e4f313a2fdc1e901b9c1be06a.tar.gz
otp-cf43aba758ceeb1e4f313a2fdc1e901b9c1be06a.tar.bz2
otp-cf43aba758ceeb1e4f313a2fdc1e901b9c1be06a.zip
Update scheme on redirect URI and accumulator
This is necessary to prevent an error when calling get_port inside resolve_authority
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_client/httpc_response.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_response.erl b/lib/inets/src/http_client/httpc_response.erl
index dfb65a4083..46073d47ec 100644
--- a/lib/inets/src/http_client/httpc_response.erl
+++ b/lib/inets/src/http_client/httpc_response.erl
@@ -434,7 +434,8 @@ resolve_uri(Scheme, Host, Port, Path, Query, URI, Map0) ->
URI);
false ->
Map = Map0#{scheme => Scheme},
- resolve_authority(Host, Port, Path, Query, URI, Map)
+ URI1 = URI#{scheme => Scheme},
+ resolve_authority(Host, Port, Path, Query, URI1, Map)
end.