aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.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 /src/cowboy_http.erl
parent699164fbdd114c981d1c368eede7ef1952b96859 (diff)
downloadcowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.tar.gz
cowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.tar.bz2
cowboy-b75b0a6d4dbdffd1346c9982a81377a4d95ce8db.zip
Use integer_to_binary when possible
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 5ec7d0e..0f5d0ae 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -862,7 +862,7 @@ commands(State=#state{socket=Socket, transport=Transport, streams=Streams}, Stre
case lists:keyfind(StreamID, #stream.id, Streams) of
#stream{version='HTTP/1.1'} ->
Size = iolist_size(Data),
- Transport:send(Socket, [integer_to_list(Size, 16), <<"\r\n">>, Data, <<"\r\n">>]);
+ Transport:send(Socket, [integer_to_binary(Size, 16), <<"\r\n">>, Data, <<"\r\n">>]);
#stream{version='HTTP/1.0'} ->
Transport:send(Socket, Data)
end,