aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-08-11 11:53:05 +0200
committerLoïc Hoguin <[email protected]>2016-08-11 11:53:05 +0200
commitb75b0a6d4dbdffd1346c9982a81377a4d95ce8db (patch)
treedc13aba32e4a10f52afa4108dd3dc54a7a34fa3e /test/http_SUITE.erl
parent699164fbdd114c981d1c368eede7ef1952b96859 (diff)
downloadcowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.tar.gz
cowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.tar.bz2
cowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.zip
Use integer_to_binary when possible
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 1b39feb..f0670a9 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -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]).