Browse files

ClientHelper#authorization_header now returns only the value of Autho…

…rization header.
  • Loading branch information...
1 parent 6345ffc commit 7e845d2e7cffe96d4dd92ae70b4e6a8be6bf3c0e @bananagi bananagi committed May 18, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/opensocial-wap/oauth/client_helper.rb
View
5 lib/opensocial-wap/oauth/client_helper.rb
@@ -15,7 +15,7 @@ class ClientHelper
def initialize(oauth_helper, *args)
@oauth_helper = oauth_helper
- # 最後の引数が Hash であれば、GETパラメータとする.
+ # 最後の引数が Hash であれば、クエリパラメータとする.
query_parameters = {}
if args.size > 0
if args[-1].is_a? Hash
@@ -36,9 +36,10 @@ def uri
@uri ||= URI.parse(@url)
end
+ # Authorization ヘッダの値を計算して返す.
def authorization_header(api_request, options = {})
options[:request_uri] = @url
- { "Authorization" => @oauth_helper.authorization_header(api_request, options) }
+ @oauth_helper.authorization_header(api_request, options)
end
end
end

0 comments on commit 7e845d2

Please sign in to comment.