aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-24 04:47:25 +0200
committerLoïc Hoguin <[email protected]>2012-09-24 04:53:24 +0200
commite30c6debdce4a0c343519199d39e94a616b1a1c7 (patch)
treef76cc7b263de2f763c958cadcd23a08bce9fcdbb /src/cowboy_req.erl
parent3c10d5488396aaeeae7666aa25361c227db039f2 (diff)
downloadcowboy-e30c6debdce4a0c343519199d39e94a616b1a1c7.tar.gz
cowboy-e30c6debdce4a0c343519199d39e94a616b1a1c7.tar.bz2
cowboy-e30c6debdce4a0c343519199d39e94a616b1a1c7.zip
Remove a '++' use when replying
Diffstat (limited to 'src/cowboy_req.erl')
-rw-r--r--src/cowboy_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index 8f2ef15..9cd8987 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -1107,7 +1107,7 @@ merge_headers(Headers, []) ->
merge_headers(Headers, [{Name, Value}|Tail]) ->
Headers2 = case lists:keymember(Name, 1, Headers) of
true -> Headers;
- false -> Headers ++ [{Name, Value}]
+ false -> [{Name, Value}|Headers]
end,
merge_headers(Headers2, Tail).