aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client/httpc_response.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_response.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_response.erl')
-rw-r--r--lib/inets/src/http_client/httpc_response.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_response.erl b/lib/inets/src/http_client/httpc_response.erl
index 207b96271c..4a2637a179 100644
--- a/lib/inets/src/http_client/httpc_response.erl
+++ b/lib/inets/src/http_client/httpc_response.erl
@@ -350,7 +350,7 @@ redirect(Response = {StatusLine, Headers, Body}, Request) ->
{error, Reason} ->
{ok, error(Request, Reason), Data};
%% Automatic redirection
- {Scheme, _, Host, Port, Path, Query} ->
+ {ok, {Scheme, _, Host, Port, Path, Query}} ->
NewHeaders =
(Request#request.headers)#http_request_h{host =
Host},