Merge pull request #1068 from basecamp/flavorjones/fix-406
Fix handling of "406 unsupported browser" responses
This commit is contained in:
@@ -2,5 +2,5 @@ class ApplicationController < ActionController::Base
|
||||
include Authentication, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, WriterAffinity
|
||||
|
||||
stale_when_importmap_changes
|
||||
allow_browser versions: :modern
|
||||
allow_browser versions: :modern, block: -> { render "errors/not_acceptable", layout: "error" }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user