aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_spdy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cow_spdy.erl')
-rw-r--r--src/cow_spdy.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cow_spdy.erl b/src/cow_spdy.erl
index 8484180..a906ddf 100644
--- a/src/cow_spdy.erl
+++ b/src/cow_spdy.erl
@@ -1,4 +1,4 @@
-%% Copyright (c) 2013, Loïc Hoguin <[email protected]>
+%% Copyright (c) 2013-2015, Loïc Hoguin <[email protected]>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
@@ -169,7 +169,7 @@ parse_headers(<< L1:32, Key:L1/binary, L2:32, Value:L2/binary, Rest/bits >>,
case Key of
<< $:, _/bits >> ->
parse_headers(Rest, NbHeaders - 1, Acc,
- [{Key, Value}|lists:keydelete(Key, 1, SpAcc)]);
+ lists:keystore(Key, 1, SpAcc, {Key, Value}));
_ ->
parse_headers(Rest, NbHeaders - 1, [{Key, Value}|Acc], SpAcc)
end.