Skip to content

Commit

Permalink
fix: set authorization to http headers (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvign committed Jul 1, 2023
1 parent 3d28349 commit 9b89f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/push/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def connect # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
'User-Agent': format('expo-server-sdk-ruby/%<version>s', version: VERSION)
)

http = http.headers('Authorization', "Bearer #{access_token}") if access_token
http = http.auth("Bearer #{access_token}") if access_token

# All requests are allowed to automatically gzip
http = http.use(:auto_inflate)
Expand Down

0 comments on commit 9b89f86

Please sign in to comment.