diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index f3ff687b..1d19838a 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -123,7 +123,7 @@ cookie_list(Data, Acc) -> (<< $,, Rest/binary >>) -> cookie_list(Rest, Acc); (<< $;, Rest/binary >>) -> cookie_list(Rest, Acc); (Rest) -> cookie(Rest, - fun (Rest2, << $$, _/bits >>, _) -> + fun (Rest2, << $$, _/binary >>, _) -> cookie_list(Rest2, Acc); (Rest2, Name, Value) -> cookie_list(Rest2, [{Name, Value}|Acc])