lib/rack/auth/abstract/request.rb in rack-1.1.6 vs lib/rack/auth/abstract/request.rb in rack-1.2.0
- old
+ new
@@ -13,14 +13,10 @@
def parts
@parts ||= @env[authorization_key].split(' ', 2)
end
def scheme
- @scheme ||=
- begin
- s = parts.first.downcase
- Rack::Auth.schemes.include?(s) ? s.to_sym : s
- end
+ @scheme ||= parts.first.downcase.to_sym
end
def params
@params ||= parts.last
end