Skip to content
Browse files

Reverted accidental change

  • Loading branch information...
1 parent b410944 commit 890bcb23605c093636d0e097aade3fd6d49d35e2 @phene phene committed Aug 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http_accept_language/parser.rb
View
2 lib/http_accept_language/parser.rb
@@ -19,7 +19,7 @@ def initialize(header)
def user_preferred_languages
@user_preferred_languages ||= header.gsub(/\s+/, '').split(/,/).collect do |l|
l += ';q=1.0' unless l =~ /;q=\d+\.\d+$/
- l.split(/;q=/)
+ l.split(';q=')
end.sort do |x,y|
raise "Not correctly formatted" unless x.first =~ /^[a-z\-0-9]+$/i
y.last.to_f <=> x.last.to_f

0 comments on commit 890bcb2

Please sign in to comment.
Something went wrong with that request. Please try again.