Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix return for default OPTIONS handler

  • Loading branch information...
commit 36c9cab00c5915354d44e83845ea89acc27c944d 1 parent 7614486
@lafka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  include/rest_module.hrl
View
2  include/rest_module.hrl
@@ -16,5 +16,5 @@ handle_default_options(Req, #tavern{methods = Methods} = State) ->
(X, Acc) -> X2 = atom_to_binary(X, utf8),
<<Acc/binary, $,, X2/binary>> end,
{ok, Req2} = cowboy_http_req:set_resp_header('Allow', lists:foldl(F, <<>>, Methods), Req),
- {'Ok', Req2, State, <<>>}.
+ {'No Content', Req2, State, <<>>}.

0 comments on commit 36c9cab

Please sign in to comment.
Something went wrong with that request. Please try again.