Sha256: 188dd9bb6769e07c67ce72122430467d8b6b62b9f752bad637dee3d5e8a07026
Contents?: true
Size: 610 Bytes
Versions: 32
Compression:
Stored size: 610 Bytes
Contents
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) if headers["X-UA-Compatible"] && @header unless headers["X-UA-Compatible"][@header] headers["X-UA-Compatible"] << "," << @header.to_s end else headers["X-UA-Compatible"] = @header end [status, headers, body] end end end
Version data entries
32 entries across 32 versions & 5 rubygems