Explorar el Código

Fixed bug in returning response when the server returns a Connection: Close header

pull/16/head
Chandrashekhar Mullaparthi hace 16 años
padre
commit
9b0a927e39
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/ibrowse_http_client.erl

+ 1
- 1
src/ibrowse_http_client.erl Ver fichero

@ -388,7 +388,7 @@ handle_sock_closed(#state{reply_buffer = Buf, reqs = Reqs, http_status_code = SC
case TmpFilename of
undefined ->
do_reply(State, From, StreamTo, ReqId, Resp_format,
{ok, SC, Headers, lists:reverse(Buf)});
{ok, SC, Headers, Buf});
_ ->
file:close(Fd),
do_reply(State, From, StreamTo, ReqId, Resp_format,

Cargando…
Cancelar
Guardar