]> git.openstreetmap.org Git - rails.git/commitdiff
Set hostname for signed requests correctly
authorTom Hughes <tom@compton.nu>
Tue, 6 Aug 2013 17:50:43 +0000 (18:50 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 21 Sep 2013 11:03:53 +0000 (12:03 +0100)
test/integration/oauth_test.rb

index 7ccf0917eba04b4ab07acd9c923a53b9ca3d3224..eb4a599bd1f44204ff4f84effe7e968677bea212 100644 (file)
@@ -328,7 +328,7 @@ private
   def signed_get(uri, options)
     uri = URI.parse(uri)
     uri.scheme ||= "http"
   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)
 
 
     helper = OAuth::Client::Helper.new(nil, options)