aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-01 18:54:43 +0200
committerLoïc Hoguin <[email protected]>2011-10-01 18:54:43 +0200
commitb79e9fbeb4eb5e80eb23f60ef71371addbcb2355 (patch)
treed3f4b5b076a7d799c9d47ae0bc744225e2d7420b /src/cowboy_http_req.erl
parentce26d7090b178c84d1dde1be3f4dc892138b8667 (diff)
downloadcowboy-b79e9fbeb4eb5e80eb23f60ef71371addbcb2355.tar.gz
cowboy-b79e9fbeb4eb5e80eb23f60ef71371addbcb2355.tar.bz2
cowboy-b79e9fbeb4eb5e80eb23f60ef71371addbcb2355.zip
Get rid of a binary construct in cowboy_http_req
Thanks to @klaar for pointing it out in ticket #59.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 1ea656f..272c8a8 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -346,7 +346,7 @@ response_head(Code, Headers, DefaultHeaders) ->
Headers2 = [{header_to_binary(Key), Value} || {Key, Value} <- Headers],
Headers3 = lists:keysort(1, Headers2),
Headers4 = lists:ukeymerge(1, Headers3, DefaultHeaders),
- Headers5 = [<< Key/binary, ": ", Value/binary, "\r\n" >>
+ Headers5 = [[Key, <<": ">>, Value, <<"\r\n">>]
|| {Key, Value} <- Headers4],
[StatusLine, Headers5, <<"\r\n">>].