Skip to content

Commit

Permalink
πŸ”€ Merge pull request #192 from iamibi/update-url-in-consumer
Browse files Browse the repository at this point in the history
Updated URLs in consumer.rb to use https instead of http
  • Loading branch information
pboling committed Oct 31, 2021
2 parents 5c1f9b2 + fd7a276 commit 051a45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/oauth/consumer.rb
Expand Up @@ -39,7 +39,7 @@ class Consumer

:proxy => nil,
# How do we send the oauth values to the server see
# http://oauth.net/core/1.0/#consumer_req_param for more info
# https://oauth.net/core/1.0/#consumer_req_param for more info
#
# Possible values:
#
Expand Down Expand Up @@ -193,7 +193,7 @@ def request(http_method, path, token = nil, request_options = {}, *arguments)
return nil if block_given? and yield(req) == :done
rsp = http.request(req)
# check for an error reported by the Problem Reporting extension
# (http://wiki.oauth.net/ProblemReporting)
# (https://wiki.oauth.net/ProblemReporting)
# note: a 200 may actually be an error; check for an oauth_problem key to be sure
if !(headers = rsp.to_hash["www-authenticate"]).nil? &&
(h = headers.select { |hdr| hdr =~ /^OAuth / }).any? &&
Expand Down

0 comments on commit 051a45c

Please sign in to comment.