Browse Source

logic was wrong

if the option return_raw_request` was unset or false, ibrowse was
still returning the returning thhe raw request. This change fix it.
(Spotted while running couchdb tests)
pull/111/head
benoitc 11 years ago
parent
commit
c0cc2c3711
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/ibrowse_http_client.erl

+ 2
- 2
src/ibrowse_http_client.erl View File

@ -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),

Loading…
Cancel
Save