Created
April 7, 2010 17:39
-
-
Save webwarelab/359176 to your computer and use it in GitHub Desktop.
This file contains 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
# Fix faulty request format of IE | |
class ActionController::Request | |
def accepts_with_faulty_header | |
@env['HTTP_ACCEPT'] = '*/*' if @env['HTTP_USER_AGENT'] =~ /msie/i and @env['HTTP_USER_AGENT'] !~ /opera|webtv/i | |
accepts_without_faulty_header | |
end | |
alias_method_chain :accepts, :faulty_header | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment