Skip to content

Commit

Permalink
log create_http_request take 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Duesing committed Feb 8, 2012
1 parent 5033f01 commit 1b98c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oauth/consumer.rb
Expand Up @@ -127,12 +127,14 @@ def get_request_token(request_options = {}, *arguments, &block)
request_options[:oauth_callback] ||= OAuth::OUT_OF_BAND unless request_options[:exclude_callback]

if block_given?
puts "$$$$$$$$$$$$$$$$$ block given: #{*arguments}"
response = token_request(http_method,
(request_token_url? ? request_token_url : request_token_path),
nil,
request_options,
*arguments, &block)
else
puts "$$$$$$$$$$$$$$$$$ no block given: #{*arguments}"
response = token_request(http_method, (request_token_url? ? request_token_url : request_token_path), nil, request_options, *arguments)
end
OAuth::RequestToken.from_hash(self, response)
Expand Down Expand Up @@ -326,7 +328,6 @@ def create_http(_url = nil)

# create the http request object for a given http_method and path
def create_http_request(http_method, path, *arguments)
puts "*** oauth-ruby trace (create_http_request): #{http_method} #{path}\n\t#{arguments}"
http_method = http_method.to_sym

if [:post, :put].include?(http_method)
Expand Down

0 comments on commit 1b98c3b

Please sign in to comment.