diff options
author | Micael Karlberg <[email protected]> | 2011-10-12 11:37:32 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-10-12 11:37:32 +0200 |
commit | 45e501e1280839d91969e9d73449b9e474468e3e (patch) | |
tree | 8b410db4094d58a2e8b41423e3b6ce3c12eae146 /lib/inets/src/http_lib/http_uri.erl | |
parent | d94c3259e06887bc0f333005f6955f5e75013b8e (diff) | |
download | otp-45e501e1280839d91969e9d73449b9e474468e3e.tar.gz otp-45e501e1280839d91969e9d73449b9e474468e3e.tar.bz2 otp-45e501e1280839d91969e9d73449b9e474468e3e.zip |
Make return from the parse function conform with:
{error, Reason} | {ok, ParsedURL}
Diffstat (limited to 'lib/inets/src/http_lib/http_uri.erl')
-rw-r--r-- | lib/inets/src/http_lib/http_uri.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/inets/src/http_lib/http_uri.erl b/lib/inets/src/http_lib/http_uri.erl index 44b9face0b..5fa23ceb2d 100644 --- a/lib/inets/src/http_lib/http_uri.erl +++ b/lib/inets/src/http_lib/http_uri.erl @@ -16,7 +16,9 @@ %% %% %CopyrightEnd% %% -%% +%% +%% RFC 3986 +%% -module(http_uri). @@ -32,7 +34,7 @@ parse(AbsURI) -> {Scheme, Rest} -> case (catch parse_uri_rest(Scheme, Rest)) of {UserInfo, Host, Port, Path, Query} -> - {Scheme, UserInfo, Host, Port, Path, Query}; + {ok, {Scheme, UserInfo, Host, Port, Path, Query}}; _ -> {error, {malformed_url, AbsURI}} end |