Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Another fix for the save_response_to_file feature

  • Loading branch information...
commit 563afd6cc864c00579433e8c4671d21298169704 1 parent 5cc53c0
chandrusf authored
3  lib/ibrowse/README
@@ -22,6 +22,9 @@ Comments to : Chandrashekhar.Mullaparthi@t-mobile.co.uk
22 22
23 23 CONTRIBUTIONS & CHANGE HISTORY
24 24 ==============================
  25 +20-02-2008 - Ram Krishnan sent another patch for another hidden bug in the
  26 + save_response_to_file feature.
  27 +
25 28 07-02-2008 - Ram Krishnan (kriyative _at_ gmail dot com) sent a simple patch to
26 29 enable specifying the filename in the save_response_to_file option.
27 30 When testing the patch, I realised that my original implementation
3  lib/ibrowse/src/ibrowse_http_client.erl
@@ -874,7 +874,6 @@ parse_11_response(DataRecvd,
874 874 %% This clause to extract the body when Content-Length is specified
875 875 parse_11_response(DataRecvd,
876 876 #state{content_length=CL, rep_buf_size=RepBufSz,
877   - cur_req = CurReq,
878 877 reqs=Reqs}=State) ->
879 878 NeedBytes = CL - RepBufSz,
880 879 DataLen = length(DataRecvd),
@@ -883,7 +882,7 @@ parse_11_response(DataRecvd,
883 882 {RemBody, Rem} = split_list_at(DataRecvd, NeedBytes),
884 883 {_, Reqs_1} = queue:out(Reqs),
885 884 State_1 = accumulate_response(RemBody, State),
886   - State_2 = handle_response(CurReq, State_1#state{reqs=Reqs_1}),
  885 + State_2 = handle_response(State_1#state.cur_req, State_1#state{reqs=Reqs_1}),
887 886 State_3 = reset_state(State_2),
888 887 parse_response(Rem, State_3);
889 888 false ->
2  lib/ibrowse/vsn.mk
... ... @@ -1,2 +1,2 @@
1   -IBROWSE_VSN = 1.3.0
  1 +IBROWSE_VSN = 1.3.1
2 2

0 comments on commit 563afd6

Please sign in to comment.
Something went wrong with that request. Please try again.