Skip to content

Commit 9669101

Browse files
committed
post出来ないバグ修正
1 parent 7ab69d8 commit 9669101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Chatwork/HttpClient/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function request($path, array $parameters = [], $httpMethod = 'GET', arra
151151
$request = $this->createRequest($httpMethod, $path);
152152
$request->addHeaders($headers);
153153
if (count($parameters) > 0) {
154-
$request->setContent(json_encode($parameters, JSON_FORCE_OBJECT));
154+
$request->setContent(http_build_query($parameters));
155155
}
156156

157157
$this->executeListeners('preSend', $request);

0 commit comments

Comments
 (0)