Ver a proveniência

Allow 303 redirect to have no Content-Length header.

pull/97/head
Stuart Coyle há 12 anos
ascendente
cometimento
8183263d61
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      src/ibrowse_http_client.erl

+ 2
- 1
src/ibrowse_http_client.erl Ver ficheiro

@ -1091,7 +1091,8 @@ parse_response(Data, #state{reply_buffer = Acc, reqs = Reqs,
parse_response(Data_1, State_1#state{recvd_headers = [],
status = get_header});
_ when StatCode =:= "204";
StatCode =:= "304" ->
StatCode =:= "304";
StatCode =:= "303" ->
%% No message body is expected for these Status Codes.
%% RFC2616 - Sec 4.4
{_, Reqs_1} = queue:out(Reqs),

Carregando…
Cancelar
Guardar