summaryrefslogtreecommitdiff
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authoreaosong <andy.song@ericsson.com>2020-07-08 14:40:44 +0200
committereaosong <andy.song@ericsson.com>2020-07-08 14:42:11 +0200
commit2c9661c5064ff2dffcf2d8ef5d226f0a6bd32bd4 (patch)
treebb5b741d5b1c058d7939afc9cd5048119f8ff524 /lib/inets/src/http_client
parent510d0f86a7a2d719de8b44443953f89cd40e2b78 (diff)
downloaderlang-2c9661c5064ff2dffcf2d8ef5d226f0a6bd32bd4.tar.gz
inets: normalize input uri into string for internal use
Change-Id: I43a9278b4726038344874d4486bb94f5bd763dde
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 1e46fa955b..28dd97b155 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -503,7 +503,7 @@ service_info(Pid) ->
normalize_and_parse_url(Url) ->
case uri_string:normalize(Url) of
{error, _, _} = Error -> Error;
- UriString -> uri_string:parse(UriString)
+ UriString -> uri_string:parse(unicode:characters_to_list(UriString))
end.
handle_request(Method, Url,