Skip to content

Instantly share code, notes, and snippets.

@xsbr
Created March 26, 2024 13:34
Show Gist options
  • Save xsbr/bf4918814c7a0c9b5c8a4849f442749d to your computer and use it in GitHub Desktop.
Save xsbr/bf4918814c7a0c9b5c8a4849f442749d to your computer and use it in GitHub Desktop.
diff --git a/lib/Trello/HttpClient/HttpClient.php b/lib/Trello/HttpClient/HttpClient.php
index 4171559..da8d654 100644
--- a/lib/Trello/HttpClient/HttpClient.php
+++ b/lib/Trello/HttpClient/HttpClient.php
@@ -212,7 +212,9 @@ class HttpClient implements HttpClientInterface
$path .= utf8_encode(http_build_query($body, '', '&'));
}
- $options['body'] = $body;
+ if ($httpMethod !== 'GET') {
+ $options['body'] = $body;
+ }
$options['headers'] = array_merge($this->headers, $headers);
return $this->client->createRequest($httpMethod, $path, $options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment