Permalink
Browse files

Bug fix: was using wrong headers names.

  • Loading branch information...
1 parent 91bd8a2 commit c56467908704987e5ec27cc52f8727ae8dff2f3a @fnando committed Oct 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/browser/action_controller.rb
@@ -7,8 +7,8 @@ def self.included(base)
private
def browser
@browser ||= Browser.new(
- :accept_language => request.headers["ACCEPT_LANGUAGE"],
- :ua => request.headers["USER_AGENT"]
+ :accept_language => request.headers["Accept-Language"],
+ :ua => request.headers["User-Agent"]
)
end
end

0 comments on commit c564679

Please sign in to comment.