aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-11-28 21:18:03 +0100
committerLoïc Hoguin <[email protected]>2011-11-28 21:18:03 +0100
commit2ae5e804fb2262c95a5f87a00f72a2bd660501c1 (patch)
tree799b3b353dfaac3484c3e8d5b888a72937edaf75 /src/cowboy_http.erl
parentad87fee0affb13ce1d5a362b237a7030b9822845 (diff)
downloadcowboy-2ae5e804fb2262c95a5f87a00f72a2bd660501c1.tar.gz
cowboy-2ae5e804fb2262c95a5f87a00f72a2bd660501c1.tar.bz2
cowboy-2ae5e804fb2262c95a5f87a00f72a2bd660501c1.zip
Weekdays are binaries and not lists
Spotted by devinus on IRC.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl4
1 files changed, 2 insertions, 2 deletions
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) ->