lib/rack/auth/abstract/request.rb in rack-1.3.8 vs lib/rack/auth/abstract/request.rb in rack-1.3.9

- old
+ new

@@ -19,10 +19,14 @@ def parts @parts ||= @env[authorization_key].split(' ', 2) end def scheme - @scheme ||= parts.first.downcase.to_sym + @scheme ||= + begin + s = parts.first.downcase + Rack::Auth.schemes.include?(s) ? s.to_sym : s + end end def params @params ||= parts.last end