Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bgh] Replaced erlang:concat_binary/1 with erlang:list_to_binary/1 s…

…ince concat_binary is depricated.
  • Loading branch information...
commit e60ea62ed724e795155a2f8c5cd05165b4ae9a56 1 parent ff360ab
@halzy halzy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ibrowse/src/ibrowse_http_client.erl
View
6 lib/ibrowse/src/ibrowse_http_client.erl
@@ -343,7 +343,7 @@ accumulate_response(Data, #state{reply_buffer = RepBuf,
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 ->
@@ -1214,9 +1214,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) ->
Please sign in to comment.
Something went wrong with that request. Please try again.