Skip to content

Commit

Permalink
Replaced 'OPTIONS' by actual Grape::Http::Headers::OPTIONS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Feb 14, 2020
1 parent 187e2cd commit 29bad9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def transaction(env)
env,
neighbor.allow_header,
neighbor.endpoint
) if neighbor && method == Http::Headers::OPTIONS && !cascade
) if neighbor && method == Grape::Http::Headers::OPTIONS && !cascade

route = match?(input, '*')
return neighbor.endpoint.call(env) if neighbor && cascade && route
Expand Down

0 comments on commit 29bad9b

Please sign in to comment.