Skip to content

Instantly share code, notes, and snippets.

@zachpendleton
Created December 6, 2011 23:46
Show Gist options
  • Select an option

  • Save zachpendleton/1440652 to your computer and use it in GitHub Desktop.

Select an option

Save zachpendleton/1440652 to your computer and use it in GitHub Desktop.
add X-UA-Compatible headers to each request
class UACompatible
def initialize(app)
@app = app
end
def call(env)
status, headers, response = @app.call(env)
headers['X-UA-Compatible'] = 'IE=edge,chrome=1'
[status, headers, response]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment