Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Another fix for the save_response_to_file feature

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