Skip to content

Commit 53e3534

Browse files
committed
Silencing 'Net::HTTPResponse#header is obsolete'
1 parent 0a03542 commit 53e3534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth/consumer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def token_request(http_method, path, token = nil, request_options = {}, *argumen
229229
end
230230
when (300..399)
231231
# this is a redirect
232-
uri = URI.parse(response.header['location'])
232+
uri = URI.parse(response['location'])
233233
response.error! if uri.path == path # careful of those infinite redirects
234234
self.token_request(http_method, uri.path, token, request_options, arguments)
235235
when (400..499)

0 commit comments

Comments
 (0)