Przeglądaj źródła

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 lat temu
rodzic
commit
c0cc2c3711
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/ibrowse_http_client.erl

+ 2
- 2
src/ibrowse_http_client.erl Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz