Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 61868 invoked from network); 2 Jul 2010 14:06:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 14:06:27 -0000 Received: (qmail 52632 invoked by uid 500); 2 Jul 2010 14:06:27 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 52508 invoked by uid 500); 2 Jul 2010 14:06:26 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 52501 invoked by uid 99); 2 Jul 2010 14:06:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 14:06:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 14:06:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E559723889F1; Fri, 2 Jul 2010 14:05:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r959989 - /couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl Date: Fri, 02 Jul 2010 14:05:30 -0000 To: commits@couchdb.apache.org From: jan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100702140530.E559723889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jan Date: Fri Jul 2 14:05:30 2010 New Revision: 959989 URL: http://svn.apache.org/viewvc?rev=959989&view=rev Log: Backport warning fix from a future version of ibrowse. The current release makes our test suite fail and I don't want to pester the 1.0.0 release cycle with this; yet I'd like 1.0.0 (and 0.11.1) to be future proof for Erlang R14B. Modified: couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl Modified: couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl?rev=959989&r1=959988&r2=959989&view=diff ============================================================================== --- couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl (original) +++ couchdb/branches/0.11.x/src/ibrowse/ibrowse_http_client.erl Fri Jul 2 14:05:30 2010 @@ -352,7 +352,7 @@ accumulate_response(Data, #state{reply_b stream_chunk_size = Stream_chunk_size, response_format = Response_format, caller_controls_socket = Caller_controls_socket} = CurReq, - RepBuf_1 = concat_binary([RepBuf, Data]), + RepBuf_1 = list_to_binary([RepBuf, Data]), New_data_size = RepBufSize - Streamed_size, case StreamTo of undefined -> @@ -1201,9 +1201,9 @@ scan_crlf_1(Bin1_head_size, Bin1, Bin2) case get_crlf_pos(Bin3) of {yes, Pos} -> {Prefix, <<_, _, Suffix/binary>>} = split_binary(Bin3, Pos), - {yes, concat_binary([Bin1_head, Prefix]), Suffix}; + {yes, list_to_binary([Bin1_head, Prefix]), Suffix}; no -> - {no, concat_binary([Bin1, Bin2])} + {no, list_to_binary([Bin1, Bin2])} end. get_crlf_pos(Bin) ->