From 2ae5e804fb2262c95a5f87a00f72a2bd660501c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 28 Nov 2011 21:18:03 +0100 Subject: Weekdays are binaries and not lists Spotted by devinus on IRC. --- src/cowboy_http.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_http.erl') diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 246a672..2dcee7e 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -403,8 +403,8 @@ http_date_ret(Data, DateTime = {Date, _Time}) -> %% We never use it, pretty much just checks the wkday is right. -spec wkday(binary(), fun()) -> any(). wkday(<< WkDay:3/binary, Rest/bits >>, Fun) - when WkDay =:= <<"Mon">>; WkDay =:= "Tue"; WkDay =:= "Wed"; - WkDay =:= <<"Thu">>; WkDay =:= "Fri"; WkDay =:= "Sat"; + when WkDay =:= <<"Mon">>; WkDay =:= <<"Tue">>; WkDay =:= <<"Wed">>; + WkDay =:= <<"Thu">>; WkDay =:= <<"Fri">>; WkDay =:= <<"Sat">>; WkDay =:= <<"Sun">> -> Fun(Rest, WkDay); wkday(_Any, _Fun) -> -- cgit v1.2.3