aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_rest.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index d3e8d7e..b44ccef 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -136,8 +136,7 @@ allowed_methods(Req, State=#state{method=Method}) ->
State2 = State#state{handler_state=HandlerState},
case lists:member(Method, List) of
true when Method =:= <<"OPTIONS">> ->
- next(Req2, State2#state{allowed_methods=
- [<<"HEAD">>, <<"GET">>, <<"OPTIONS">>]},
+ next(Req2, State2#state{allowed_methods=List},
fun malformed_request/2);
true ->
next(Req2, State2, fun malformed_request/2);