浏览代码

Bug fix from Derek Upham incorporated. See README for details.

pull/16/head
chandrusf 18 年前
父节点
当前提交
78456b6b46
共有 3 个文件被更改,包括 7 次插入6 次删除
  1. +4
    -1
      README
  2. +2
    -4
      src/ibrowse_http_client.erl
  3. +1
    -1
      vsn.mk

+ 4
- 1
README 查看文件

@ -1,4 +1,4 @@
$Id: README,v 1.6 2006/11/13 20:41:36 chandrusf Exp $
$Id: README,v 1.7 2007/01/26 10:02:59 chandrusf Exp $
ibrowse is a HTTP client. The following are a list of features.
- RFC2616 compliant (AFAIK)
@ -21,6 +21,9 @@ Comments to : Chandrashekhar.Mullaparthi@t-mobile.co.uk
CONTRIBUTIONS & CHANGE HISTORY
==============================
12-01-2007 - Derek Upham sent in a bug fix. The reset_state function was not
behaving correctly when the transfer encoding was not chunked.
13-11-2006 - Youns Hafri reported a bug where ibrowse was not returning the
temporary filename when the server was closing the connection
after sending the data (as in HTTP/1.0).

+ 2
- 4
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.8 2006/11/13 20:41:36 chandrusf Exp $ ').
-vsn('$Id: ibrowse_http_client.erl,v 1.9 2007/01/26 10:02:59 chandrusf Exp $ ').
-behaviour(gen_server).
%%--------------------------------------------------------------------
@ -860,7 +860,6 @@ parse_11_response(DataRecvd,
handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
#state{save_response_to_file = true,
reqs = Reqs,
http_status_code=SCode,
tmp_file_name=TmpFilename,
tmp_file_fd=Fd,
@ -874,7 +873,6 @@ handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
#state{http_status_code=SCode, recvd_headers=RespHeaders,
reply_buffer=RepBuf, transfer_encoding=TEnc,
reqs = Reqs,
chunks=Chunks, send_timer=ReqTimer}=State) ->
Body = case TEnc of
chunked ->
@ -896,7 +894,7 @@ handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
reset_state(State) ->
State#state{status=get_header, rep_buf_size=0,content_length=undefined,
reply_buffer=[], chunks=[], recvd_headers=[], deleted_crlf=false,
http_status_code=undefined, chunk_size=0, transfer_encoding=undefined}.
http_status_code=undefined, chunk_size=undefined, transfer_encoding=undefined}.
set_cur_request(#state{reqs = Reqs} = State) ->
case queue:to_list(Reqs) of

+ 1
- 1
vsn.mk 查看文件

@ -1,2 +1,2 @@
IBROWSE_VSN = 1.2.3
IBROWSE_VSN = 1.2.4

正在加载...
取消
保存