Skip to content

Commit 7ae07ad

Browse files
committed
Lets not pass EnableCache to Trello :)
1 parent a9163e2 commit 7ae07ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func (c *Client) Get(path string, args Arguments, target interface{}) error {
7979
// Trello prohibits more than 10 seconds/second per token
8080
c.Throttle()
8181

82+
delete(args, "EnableCache")
8283
params := args.ToURLValues()
8384
c.log("[trello] GET %s?%s", path, params.Encode())
8485

@@ -111,6 +112,7 @@ func (c *Client) Put(path string, args Arguments, target interface{}) error {
111112
// Trello prohibits more than 10 seconds/second per token
112113
c.Throttle()
113114

115+
delete(args, "EnableCache")
114116
params := args.ToURLValues()
115117
c.log("[trello] PUT %s?%s", path, params.Encode())
116118

@@ -142,6 +144,7 @@ func (c *Client) Post(path string, args Arguments, target interface{}) error {
142144
// Trello prohibits more than 10 seconds/second per token
143145
c.Throttle()
144146

147+
delete(args, "EnableCache")
145148
params := args.ToURLValues()
146149
c.log("[trello] POST %s?%s", path, params.Encode())
147150

@@ -172,6 +175,7 @@ func (c *Client) Delete(path string, args Arguments, target interface{}) error {
172175

173176
c.Throttle()
174177

178+
delete(args, "EnableCache")
175179
params := args.ToURLValues()
176180
c.log("[trello] DELETE %s?%s", path, params.Encode())
177181

0 commit comments

Comments
 (0)