Skip to content
Browse files

Fix oauth data bug

  • Loading branch information...
1 parent 448d4e3 commit 98c3ffd7c2699d389cec63e2c68c9c3a019e96dd @matsumoto-r committed Jan 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 mrblib/oauth.rb
View
2 mrblib/oauth.rb
@@ -28,6 +28,7 @@ def request(method, url, body = nil, headers = {})
def auth_header(method, url, body)
parameters = oauth_parameters
parameters["oauth_signature"] = signature(method, url, body, parameters)
+ 'OAuth ' + encode_parameters(parameters, ', ', '"')
end
def oauth_parameters
{
@@ -62,6 +63,7 @@ def signature_base_string(method, url, body, parameters)
method = method.upcase
base_url = signature_base_url(url)
parameters = normalize_parameters(parameters, body, url.query)
+ encode_parameters([ method, base_url, parameters ])
end
def signature_base_url(url)
str = url.schema + "://"

0 comments on commit 98c3ffd

Please sign in to comment.
Something went wrong with that request. Please try again.