Created
December 6, 2011 23:46
-
-
Save zachpendleton/1440652 to your computer and use it in GitHub Desktop.
add X-UA-Compatible headers to each request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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