summaryrefslogtreecommitdiff
path: root/lib/inets
diff options
context:
space:
mode:
authorIngela Andin <ingela@erlang.org>2021-05-28 10:09:24 +0200
committerGitHub <noreply@github.com>2021-05-28 10:09:24 +0200
commit0b38c2133cc64cfe9899622da0f7b6e319832bd8 (patch)
treebe332f9dbb38b0689079406610e2d18243aa7bc1 /lib/inets
parente779ffc53626bc446d01048202216aa8fb818b3f (diff)
parentdda77614ff1fecc13e9e63a9af3d4c8db164fa36 (diff)
downloaderlang-0b38c2133cc64cfe9899622da0f7b6e319832bd8.tar.gz
Merge pull request #4850 from sirihansen/siri/skip-uri_string-parse
Skip one extra uri_string:parse for httpc URL OTP-17460
Diffstat (limited to 'lib/inets')
-rw-r--r--lib/inets/src/http_client/httpc.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 2cb982ab83..00e960cf71 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -501,10 +501,7 @@ service_info(Pid) ->
%%% Internal functions
%%%========================================================================
normalize_and_parse_url(Url) ->
- case uri_string:normalize(Url) of
- {error, _, _} = Error -> Error;
- UriString -> uri_string:parse(unicode:characters_to_list(UriString))
- end.
+ uri_string:normalize(unicode:characters_to_list(Url), [return_map]).
handle_request(Method, Url,
URI,