lib/DMAO/WardenJWT/strategy.rb in DMAO-WardenJWT-0.2.0 vs lib/DMAO/WardenJWT/strategy.rb in DMAO-WardenJWT-0.3.0
- old
+ new
@@ -21,10 +21,10 @@
false
end
def bearer_token
pattern = /^Bearer /
- header = request.get_header('HTTP_AUTHORIZATION') # <= env
+ header = request.env['HTTP_AUTHORIZATION'] # <= env
header.gsub(pattern, '') if header && header.match(pattern)
end
def jwt
\ No newline at end of file