Created
March 26, 2024 13:34
-
-
Save xsbr/bf4918814c7a0c9b5c8a4849f442749d to your computer and use it in GitHub Desktop.
Fix php-trello-api - https://developer.atlassian.com/changelog/#CHANGE-1459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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