mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
minor refactor
This commit is contained in:
parent
ec6fc7d964
commit
c37a6fba75
1 changed files with 1 additions and 2 deletions
|
@ -423,8 +423,7 @@ options(Req, State=#state{allowed_methods=Methods, method= <<"OPTIONS">>}) ->
|
|||
Req2 = cowboy_req:set_resp_header(<<"allow">>, <<>>, Req),
|
||||
respond(Req2, State, 200);
|
||||
no_call ->
|
||||
<< ", ", Allow/binary >>
|
||||
= << << ", ", M/binary >> || M <- Methods >>,
|
||||
Allow = stringify_allowed_methods(Methods),
|
||||
Req2 = cowboy_req:set_resp_header(<<"allow">>, Allow, Req),
|
||||
respond(Req2, State, 200);
|
||||
{stop, Req2, State2} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue