Kaynağa Gözat

Removed use of concat_binary

pull/16/head
Chandrashekhar Mullaparthi 15 yıl önce
ebeveyn
işleme
05e1003547
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      src/ibrowse_http_client.erl

+ 3
- 3
src/ibrowse_http_client.erl Dosyayı Görüntüle

@ -348,7 +348,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 ->
@ -1390,9 +1390,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) ->

Yükleniyor…
İptal
Kaydet