blob: 69adcc419f6ea3fd0c5875b10b52f34031242d0c (
plain) (
tree)
|
|
module ActionDispatch
class BestStandardsSupport
def initialize(app, type = true)
@app = app
@header = case type
when true
"IE=Edge,chrome=1"
when :builtin
"IE=Edge"
when false
nil
end
end
def call(env)
status, headers, body = @app.call(env)
headers["X-UA-Compatible"] = @header
[status, headers, body]
end
end
end
|