Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Fixed HMAC when there are no params
Browse files Browse the repository at this point in the history
  • Loading branch information
aianus committed May 10, 2014
1 parent c69a8ed commit 5113ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coinbase/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def http_verb(verb, path, options={})

if [:get, :delete].include? verb
request_options = {}
path = "#{path}?#{URI.encode_www_form(options)}"
path = "#{path}?#{URI.encode_www_form(options)}" if !options.empty?
hmac_message = nonce.to_s + @base_uri + path
else
request_options = {body: options.to_json}
Expand Down

0 comments on commit 5113ae9

Please sign in to comment.