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.
2 parents 57098c3 + 54ebe51 commit 269a429Copy full SHA for 269a429
1 file changed
lib/sequenceserver/routes.rb
@@ -297,7 +297,7 @@ class Routes < Sinatra::Base
297
error_data[:more_info] = error.backtrace.join("\n")
298
end
299
300
- if request.env['HTTP_ACCEPT'].to_s.include?('application/json')
+ if request.env['HTTP_ACCEPT'].to_s.include?('application/json') || request.path.end_with?('.json')
301
status 422
302
content_type :json
303
error_data.to_json
0 commit comments