Permalink
Browse files

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

  • Loading branch information...
chandrusf
chandrusf committed Mar 17, 2006
1 parent e10dfa6 commit ff981435b1987cd2e5971bc76723c44b0aad4c8b
Showing with 3 additions and 2 deletions.
  1. +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.

0 comments on commit ff98143

Please sign in to comment.