lib/push/client.rb in expo-server-sdk-0.1.5 vs lib/push/client.rb in expo-server-sdk-0.1.6
- old
+ new
@@ -254,10 +254,10 @@
'Accept-Encoding': 'gzip',
# Set user-agent so that expo can track usage
'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)
# Turn on logging if there is a logger
http = http.use(logging: { logger: logger }) if logger