aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client/httpc_manager.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-10-12 11:37:32 +0200
committerMicael Karlberg <[email protected]>2011-10-12 11:37:32 +0200
commit45e501e1280839d91969e9d73449b9e474468e3e (patch)
tree8b410db4094d58a2e8b41423e3b6ce3c12eae146 /lib/inets/src/http_client/httpc_manager.erl
parentd94c3259e06887bc0f333005f6955f5e75013b8e (diff)
downloadotp-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_client/httpc_manager.erl')
-rw-r--r--lib/inets/src/http_client/httpc_manager.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inets/src/http_client/httpc_manager.erl b/lib/inets/src/http_client/httpc_manager.erl
index 9015bf1ce2..470d802740 100644
--- a/lib/inets/src/http_client/httpc_manager.erl
+++ b/lib/inets/src/http_client/httpc_manager.erl
@@ -398,12 +398,12 @@ handle_call(which_cookies, _, #state{cookie_db = CookieDb} = State) ->
handle_call({which_cookies, Url}, _, #state{cookie_db = CookieDb} = State) ->
?hcrv("which cookies", [{url, Url}]),
case http_uri:parse(Url) of
- {Scheme, _, Host, Port, Path, _} ->
+ {ok, {Scheme, _, Host, Port, Path, _}} ->
CookieHeaders =
httpc_cookie:header(CookieDb, Scheme, {Host, Port}, Path),
{reply, CookieHeaders, State};
- Msg ->
- {reply, Msg, State}
+ {error, _} = ERROR ->
+ {reply, ERROR, State}
end;
handle_call(info, _, State) ->