Class: Rack::ChromeFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/chrome_frame.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ChromeFrame

Returns a new instance of ChromeFrame.



5
6
7
# File 'lib/rack/chrome_frame.rb', line 5

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
# File 'lib/rack/chrome_frame.rb', line 9

def call(env)
  status, headers, response = @app.call(env)
  headers["X-UA-Compatible"] ||= "chrome=1"
  [status, headers, response]
end