Skip to content

Commit 9c1f5ac

Browse files
authored
Merge pull request #4 from rofreg/rofreg/fix-faraday-deprecation-warning
Fix Faraday deprecation warning - thanks @rofreg !
2 parents afb90be + 8fa4625 commit 9c1f5ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tweetkit/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def request(method, endpoint, data, **options)
2727
if auth_type == 'oauth1'
2828
conn.request :oauth, consumer_key: @consumer_key, consumer_secret: @consumer_secret
2929
else
30-
conn.authorization :Bearer, @bearer_token
30+
conn.request :authorization, 'Bearer', @bearer_token
3131
end
3232
end
3333
response = connection.get(url)

0 commit comments

Comments
 (0)