Set hostname for signed requests correctly

This commit is contained in:
Tom Hughes 2013-08-06 18:50:43 +01:00
parent 57c4438b75
commit b7e795e1e1

View file

@ -328,7 +328,7 @@ private
def signed_get(uri, options)
uri = URI.parse(uri)
uri.scheme ||= "http"
uri.host ||= host
uri.host ||= "www.example.com"
helper = OAuth::Client::Helper.new(nil, options)