mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Use integer_to_binary when possible
This commit is contained in:
parent
699164fbdd
commit
b75b0a6d4d
2 changed files with 2 additions and 2 deletions
|
@ -945,7 +945,7 @@ do_body_to_chunks(ChunkSize, Body, Acc) ->
|
|||
false -> ChunkSize
|
||||
end,
|
||||
<< Chunk:ChunkSize2/binary, Rest/binary >> = Body,
|
||||
ChunkSizeBin = list_to_binary(integer_to_list(ChunkSize2, 16)),
|
||||
ChunkSizeBin = integer_to_binary(ChunkSize2, 16),
|
||||
do_body_to_chunks(ChunkSize, Rest,
|
||||
[<< ChunkSizeBin/binary, "\r\n", Chunk/binary, "\r\n" >>|Acc]).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue