lib/hanami/authentication/token.rb in hanami-authentication-0.3.1 vs lib/hanami/authentication/token.rb in hanami-authentication-0.3.2
- old
+ new
@@ -27,10 +27,10 @@
def authenticated?
!!@current_user
end
def token_from_header
- header = request.get_header('Authorization')
+ header = request.get_header('HTTP_AUTHORIZATION')
return unless header
matched = header.match(/Bearer (.+)$/)
matched && matched[1]
end