aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Favatella <[email protected]>2018-03-06 09:28:16 +0000
committerLuca Favatella <[email protected]>2018-03-06 09:31:58 +0000
commit9fc5b13f919cdda12ee8e980d59b67f28a109786 (patch)
tree300176626a017b6d6a3236c461e971ca3fe9d326
parent81dc712abfc5e93d996191178e555d0c6af3652d (diff)
downloadotp-9fc5b13f919cdda12ee8e980d59b67f28a109786.tar.gz
otp-9fc5b13f919cdda12ee8e980d59b67f28a109786.tar.bz2
otp-9fc5b13f919cdda12ee8e980d59b67f28a109786.zip
inets: work around http_uri:parse Dialyzer warning in uri_SUITE.erl:274
Addresses https://github.com/erlang/otp/pull/1724#discussion_r172442753 Current `http_uri:parse/2` implementation intends that ["non-fun scheme_validation_fun works as no option passed"](https://github.com/erlang/otp/blob/OTP-20.2.4/lib/inets/test/uri_SUITE.erl#L271-L274).
-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 3bada84357..d02913121c 100644
--- a/lib/inets/src/http_lib/http_uri.erl
+++ b/lib/inets/src/http_lib/http_uri.erl
@@ -111,7 +111,7 @@ parse(AbsURI) ->
Option :: {ipv6_host_with_brackets, boolean()} |
{scheme_defaults, scheme_defaults()} |
{fragment, boolean()} |
- {scheme_validation_fun, scheme_validation_fun()}.
+ {scheme_validation_fun, scheme_validation_fun() | none}.
parse(AbsURI, Opts) ->
case parse_scheme(AbsURI, Opts) of
{error, Reason} ->