Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modifies request and 3-legged-oauth signing to be able to target an a…

…rbitrary port number.

git-svn-id: http://opensocial-ruby-client.googlecode.com/svn/trunk@26 f65e88d0-acf7-11dd-a0fe-71d3f493a0de
  • Loading branch information...
commit 0cf8da10a2444e31126281d1b624fb425107376e 1 parent ffe5983
api.dwh@google.com authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/opensocial/auth/base.rb
  2. +1 −1  lib/opensocial/request.rb
View
2  lib/opensocial/auth/base.rb
@@ -91,7 +91,7 @@ def get_access_token(connection, token, secret)
uri = URI.parse(connection.container[:base_uri] +
connection.container[:access_token_path])
- http = Net::HTTP.new(uri.host)
+ http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Get.new(uri.request_uri)
connection.sign!(http, req)
View
2  lib/opensocial/request.rb
@@ -81,7 +81,7 @@ def send_request(service, guid, selector = nil, pid = nil,
# request's connection has specified HMAC-SHA1 authentication, OAuth
# parameters and signature are appended to the request.
def dispatch(uri, post_data = nil)
- http = Net::HTTP.new(uri.host)
+ http = Net::HTTP.new(uri.host, uri.port)
if post_data
req = Net::HTTP::Post.new(uri.request_uri)
Please sign in to comment.
Something went wrong with that request. Please try again.