From 7ae07adf61a01a553cab131ea56725afdee620a0 Mon Sep 17 00:00:00 2001 From: Tommy McNeely Date: Wed, 4 Nov 2020 08:11:01 -0700 Subject: [PATCH] Lets not pass EnableCache to Trello :) --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 02f0126..f07b389 100644 --- a/client.go +++ b/client.go @@ -79,6 +79,7 @@ func (c *Client) Get(path string, args Arguments, target interface{}) error { // Trello prohibits more than 10 seconds/second per token c.Throttle() + delete(args, "EnableCache") params := args.ToURLValues() c.log("[trello] GET %s?%s", path, params.Encode()) @@ -111,6 +112,7 @@ func (c *Client) Put(path string, args Arguments, target interface{}) error { // Trello prohibits more than 10 seconds/second per token c.Throttle() + delete(args, "EnableCache") params := args.ToURLValues() c.log("[trello] PUT %s?%s", path, params.Encode()) @@ -142,6 +144,7 @@ func (c *Client) Post(path string, args Arguments, target interface{}) error { // Trello prohibits more than 10 seconds/second per token c.Throttle() + delete(args, "EnableCache") params := args.ToURLValues() c.log("[trello] POST %s?%s", path, params.Encode()) @@ -172,6 +175,7 @@ func (c *Client) Delete(path string, args Arguments, target interface{}) error { c.Throttle() + delete(args, "EnableCache") params := args.ToURLValues() c.log("[trello] DELETE %s?%s", path, params.Encode())