Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0533-Skip-one-extra-uri_string-parse-on-httpc-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0533-Skip-one-extra-uri_string-parse-on-httpc-request.patch of Package erlang
From dda77614ff1fecc13e9e63a9af3d4c8db164fa36 Mon Sep 17 00:00:00 2001 From: Siri Hansen <siri.hansen@nordnet.se> Date: Tue, 18 May 2021 15:09:08 +0200 Subject: [PATCH] Skip one extra uri_string:parse on httpc:request --- lib/inets/src/http_client/httpc.erl | 5 +---- 1 file changed, 1 insertion(+), 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, -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor