aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorLuca Favatella <[email protected]>2018-03-06 14:01:12 +0000
committerLuca Favatella <[email protected]>2018-03-14 12:46:47 +0000
commit8df97eea992cf0fd3f1f1fc9f6bbc609949f1355 (patch)
treed7dcd5246b77d3240c51bc348c1dda8a95606919 /lib/inets/src
parent98d8d18584cffd9bae18f1f9be997ab00fac081e (diff)
downloadotp-8df97eea992cf0fd3f1f1fc9f6bbc609949f1355.tar.gz
otp-8df97eea992cf0fd3f1f1fc9f6bbc609949f1355.tar.bz2
otp-8df97eea992cf0fd3f1f1fc9f6bbc609949f1355.zip
inets: fix scheme validation in http_uri:parse when binary URI
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_lib/http_uri.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_lib/http_uri.erl b/lib/inets/src/http_lib/http_uri.erl
index d02913121c..bc588fd390 100644
--- a/lib/inets/src/http_lib/http_uri.erl
+++ b/lib/inets/src/http_lib/http_uri.erl
@@ -197,7 +197,7 @@ extract_scheme(Str, Opts) ->
{value, {scheme_validation_fun, Fun}} when is_function(Fun) ->
case Fun(Str) of
valid ->
- {ok, list_to_atom(http_util:to_lower(Str))};
+ {ok, to_atom(http_util:to_lower(Str))};
{error, Error} ->
{error, Error}
end;