Explorar el Código

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 hace 11 años
padre
commit
c0cc2c3711
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/ibrowse_http_client.erl

+ 2
- 2
src/ibrowse_http_client.erl Ver fichero

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

Cargando…
Cancelar
Guardar