Skip to content

Commit

Permalink
Merge pull request cmullaparthi#111 from refuge/fix/give_raw_request
Browse files Browse the repository at this point in the history
logic is  wrong in parse_response with the return_raw_request option
  • Loading branch information
cmullaparthi committed Mar 24, 2014
2 parents d1a5bb0 + c0cc2c3 commit b85b408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ibrowse_http_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ parse_response(Data, #state{reply_buffer = Acc, reqs = Reqs,
{_, Reqs_1} = queue:out(Reqs),
send_async_headers(ReqId, StreamTo, Give_raw_headers, State_1),
Reply = case Give_raw_req of
true ->
{ok, StatCode, Headers_1, []};
false ->
{ok, StatCode, Headers_1, []};
true ->
{ok, StatCode, Headers_1, [], Raw_req}
end,
State_1_1 = do_reply(State_1, From, StreamTo, ReqId, Resp_format, Reply),
Expand Down

0 comments on commit b85b408

Please sign in to comment.