Skip to content

Commit 59da25b

Browse files
committed
Merge pull request #129 from oauth-xx/silence_net_http_header_obsolete
Silencing 'Net::HTTPResponse#header is obsolete'
2 parents df8840c + 53e3534 commit 59da25b

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)