We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23f5d9 commit 900c22bCopy full SHA for 900c22b
lib/grape/middleware/versioner/header.rb
@@ -26,7 +26,7 @@ def before
26
accept = env['HTTP_ACCEPT'] || ""
27
28
if options[:version_options] && options[:version_options].keys.include?(:strict) && options[:version_options][:strict]
29
- if (incorrect_header?(accept)) && options[:versions] && options[:version_options][:using] == :header
+ if (incorrect_header?(accept)) && options[:version_options][:using] == :header
30
throw :error, :status => 404, :headers => {'X-Cascade' => 'pass'}, :message => "404 API Version Not Found"
31
end
32
0 commit comments