Skip to content

Commit

Permalink
[bgh] Replaced erlang:concat_binary/1 with erlang:list_to_binary/1 s…
Browse files Browse the repository at this point in the history
…ince concat_binary is depricated.
  • Loading branch information
halzy committed Apr 29, 2010
1 parent ff360ab commit e60ea62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ibrowse/src/ibrowse_http_client.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ accumulate_response(Data, #state{reply_buffer = RepBuf,
stream_chunk_size = Stream_chunk_size, stream_chunk_size = Stream_chunk_size,
response_format = Response_format, response_format = Response_format,
caller_controls_socket = Caller_controls_socket} = CurReq, 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, New_data_size = RepBufSize - Streamed_size,
case StreamTo of case StreamTo of
undefined -> undefined ->
Expand Down Expand Up @@ -1214,9 +1214,9 @@ scan_crlf_1(Bin1_head_size, Bin1, Bin2) ->
case get_crlf_pos(Bin3) of case get_crlf_pos(Bin3) of
{yes, Pos} -> {yes, Pos} ->
{Prefix, <<_, _, Suffix/binary>>} = split_binary(Bin3, 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 ->
{no, concat_binary([Bin1, Bin2])} {no, list_to_binary([Bin1, Bin2])}
end. end.


get_crlf_pos(Bin) -> get_crlf_pos(Bin) ->
Expand Down

0 comments on commit e60ea62

Please sign in to comment.