Skip to content

Commit

Permalink
Merge pull request #129 from NGWNGW/patch-1
Browse files Browse the repository at this point in the history
Make post request work properly
  • Loading branch information
delatbabel committed May 16, 2016
2 parents 3d39ab6 + 488cf7f commit d3fca21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ protected function getItemData()

public function sendData($data)
{
$httpRequest = $this->httpClient->post($this->getEndpoint(), null, http_build_query($data));
$httpRequest = $this->httpClient->post($this->getEndpoint(), null, http_build_query($data, '', '&'));
$httpRequest->getCurlOptions()->set(CURLOPT_SSLVERSION, 6); // CURL_SSLVERSION_TLSv1_2 for libcurl < 7.35
$httpResponse = $httpRequest->send();

Expand Down

0 comments on commit d3fca21

Please sign in to comment.