Переглянути джерело

Fixed bug when handling responses after a 100 response from the server

pull/16/head
chandrusf 19 роки тому
джерело
коміт
ff981435b1
1 змінених файлів з 3 додано та 2 видалено
  1. +3
    -2
      src/ibrowse_http_client.erl

+ 3
- 2
src/ibrowse_http_client.erl Переглянути файл

@ -6,7 +6,7 @@
%%% Created : 11 Oct 2003 by Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk>
%%%-------------------------------------------------------------------
-module(ibrowse_http_client).
-vsn('$Id: ibrowse_http_client.erl,v 1.4 2005/12/08 12:05:07 chandrusf Exp $ ').
-vsn('$Id: ibrowse_http_client.erl,v 1.5 2006/03/17 10:05:18 chandrusf Exp $ ').
-behaviour(gen_server).
%%--------------------------------------------------------------------
@ -662,7 +662,8 @@ parse_response(Data, #state{reply_buffer=Acc, reqs=Reqs,
%% response.
send_async_headers(ReqId, StreamTo, StatCode, Headers_1),
do_trace("Recvd a status code of ~p. Ignoring and waiting for a proper response~n", [StatCode]),
parse_response(Data_1, State_1);
parse_response(Data_1, State_1#state{recvd_headers = [],
status = get_header});
_ when StatCode == "204";
StatCode == "304" ->
%% No message body is expected for these Status Codes.

Завантаження…
Відмінити
Зберегти