aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_hpack.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-09 12:21:23 +0200
committerLoïc Hoguin <[email protected]>2016-06-09 12:21:23 +0200
commit8cf98c9f3d1292c1b08fca5ca99772ae912eaa86 (patch)
treeb044b23f26bed759930239db09eede2336ef5350 /src/cow_hpack.erl
parentb448c4fde627f27793b74965043e113f78cfb8d0 (diff)
parenta7d5141d13c8944867c9361e544981d9954728c4 (diff)
downloadcowlib-8cf98c9f3d1292c1b08fca5ca99772ae912eaa86.tar.gz
cowlib-8cf98c9f3d1292c1b08fca5ca99772ae912eaa86.tar.bz2
cowlib-8cf98c9f3d1292c1b08fca5ca99772ae912eaa86.zip
Merge branch 'master' of https://github.com/leoliu/cowlib
Diffstat (limited to 'src/cow_hpack.erl')
-rw-r--r--src/cow_hpack.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cow_hpack.erl b/src/cow_hpack.erl
index 738dd20..4ddd473 100644
--- a/src/cow_hpack.erl
+++ b/src/cow_hpack.erl
@@ -563,7 +563,7 @@ encode(Headers, State, Opts) ->
%% @todo Handle cases where no/never indexing is expected.
encode([], State, _, Acc) ->
{lists:reverse(Acc), State};
-encode([Header0 = {Name, Value0}|Tail], State, Opts, Acc) ->
+encode([_Header0 = {Name, Value0}|Tail], State, Opts, Acc) ->
Value = iolist_to_binary(Value0),
Header = {Name, Value},
case table_find(Header, State) of