Skip to content

Commit b43d121

Browse files
authored
Merge pull request #84 from sunanzhi/master
2 parents 4a6a99e + a372396 commit b43d121

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Message/PromotionTransferRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ public function sendData($data)
250250
);
251251

252252
$body = Helper::array2xml($data);
253-
$request = $this->httpClient->post($this->endpoint, null, $data)->setBody($body);
254-
$request->getCurlOptions()->overwriteWith($options);
255-
$response = $request->send()->getBody();
253+
$response = $this->httpClient->request('POST', $this->endpoint, [], $body)->getBody();
256254
$responseData = Helper::xml2array($response);
257255

258256
return $this->response = new PromotionTransferResponse($this, $responseData);

0 commit comments

Comments
 (0)