Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverted accidental change

  • Loading branch information...
commit 890bcb23605c093636d0e097aade3fd6d49d35e2 1 parent b410944
@phene phene authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.