From 5386280a61bf00fbf1f0487d6ae7ce7be143d6e3 Mon Sep 17 00:00:00 2001 From: Bryan Talbot Date: Tue, 19 Jul 2016 18:17:22 -0700 Subject: [PATCH] Do not set a guid param during POST. The API seems to behave the same if a different guid is provided every time (the previous client behavior) or if no guid is provided. --- lib/bitpay/rest_connector.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bitpay/rest_connector.rb b/lib/bitpay/rest_connector.rb index 2f98c38..a89fd7a 100644 --- a/lib/bitpay/rest_connector.rb +++ b/lib/bitpay/rest_connector.rb @@ -32,7 +32,6 @@ def post(path:, token: nil, params:) urlpath = '/' + path request = Net::HTTP::Post.new urlpath params[:token] = token if token - params[:guid] = SecureRandom.uuid params[:id] = @client_id request.body = params.to_json if token