Selaa lähdekoodia

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

pull/16/head
chandrusf 18 vuotta sitten
vanhempi
commit
78456b6b46
3 muutettua tiedostoa jossa 7 lisäystä ja 6 poistoa
  1. +4
    -1
      README
  2. +2
    -4
      src/ibrowse_http_client.erl
  3. +1
    -1
      vsn.mk

+ 4
- 1
README Näytä tiedosto

@ -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. ibrowse is a HTTP client. The following are a list of features.
- RFC2616 compliant (AFAIK) - RFC2616 compliant (AFAIK)
@ -21,6 +21,9 @@ Comments to : Chandrashekhar.Mullaparthi@t-mobile.co.uk
CONTRIBUTIONS & CHANGE HISTORY 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 13-11-2006 - Youns Hafri reported a bug where ibrowse was not returning the
temporary filename when the server was closing the connection temporary filename when the server was closing the connection
after sending the data (as in HTTP/1.0). after sending the data (as in HTTP/1.0).

+ 2
- 4
src/ibrowse_http_client.erl Näytä tiedosto

@ -6,7 +6,7 @@
%%% Created : 11 Oct 2003 by Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk> %%% Created : 11 Oct 2003 by Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@t-mobile.co.uk>
%%%------------------------------------------------------------------- %%%-------------------------------------------------------------------
-module(ibrowse_http_client). -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). -behaviour(gen_server).
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
@ -860,7 +860,6 @@ parse_11_response(DataRecvd,
handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId}, handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
#state{save_response_to_file = true, #state{save_response_to_file = true,
reqs = Reqs,
http_status_code=SCode, http_status_code=SCode,
tmp_file_name=TmpFilename, tmp_file_name=TmpFilename,
tmp_file_fd=Fd, 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}, handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
#state{http_status_code=SCode, recvd_headers=RespHeaders, #state{http_status_code=SCode, recvd_headers=RespHeaders,
reply_buffer=RepBuf, transfer_encoding=TEnc, reply_buffer=RepBuf, transfer_encoding=TEnc,
reqs = Reqs,
chunks=Chunks, send_timer=ReqTimer}=State) -> chunks=Chunks, send_timer=ReqTimer}=State) ->
Body = case TEnc of Body = case TEnc of
chunked -> chunked ->
@ -896,7 +894,7 @@ handle_response(#request{from=From, stream_to=StreamTo, req_id=ReqId},
reset_state(State) -> reset_state(State) ->
State#state{status=get_header, rep_buf_size=0,content_length=undefined, State#state{status=get_header, rep_buf_size=0,content_length=undefined,
reply_buffer=[], chunks=[], recvd_headers=[], deleted_crlf=false, 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) -> set_cur_request(#state{reqs = Reqs} = State) ->
case queue:to_list(Reqs) of case queue:to_list(Reqs) of

+ 1
- 1
vsn.mk Näytä tiedosto

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

Ladataan…
Peruuta
Tallenna