Skip to content

Commit c5ff1b9

Browse files
author
zouyi6
committed
remove setbody
1 parent 29fbd2e commit c5ff1b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Requests/AbstractAopRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ public function sendData($data)
178178
$url = $this->getRequestUrl($data);
179179
$body = $this->getRequestBody();
180180

181-
$response = $this->httpClient->post($url)/**/
182-
->setBody($body, 'application/x-www-form-urlencoded')/**/
181+
$response = $this->httpClient->post($url, [], $body)/**/
183182
->send()->getBody();
184183

185184
$response = $this->decode($response);

0 commit comments

Comments
 (0)