lib/doorkeeper/oauth/token.rb in doorkeeper-2.1.1 vs lib/doorkeeper/oauth/token.rb in doorkeeper-2.1.2
- old
+ new
@@ -9,16 +9,16 @@
def from_bearer_param(request)
request.parameters[:bearer_token]
end
def from_bearer_authorization(request)
- pattern = /^Bearer /
+ pattern = /^Bearer /i
header = request.authorization
token_from_header(header, pattern) if match?(header, pattern)
end
def from_basic_authorization(request)
- pattern = /^Basic /
+ pattern = /^Basic /i
header = request.authorization
token_from_basic_header(header, pattern) if match?(header, pattern)
end
private