From cf43aba758ceeb1e4f313a2fdc1e901b9c1be06a Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Tue, 3 Jul 2018 17:33:37 +0000 Subject: Update scheme on redirect URI and accumulator This is necessary to prevent an error when calling get_port inside resolve_authority --- lib/inets/src/http_client/httpc_response.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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. -- cgit v1.2.3