Skip to content

Commit

Permalink
Merge pull request #62 from QuickPay/Prepare-for-release-1.1
Browse files Browse the repository at this point in the history
Prepare for release 1.1
  • Loading branch information
Sthing authored Dec 16, 2019
2 parents d62ebda + 130ab7a commit 31ec24f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
end_of_line = lf
insert_final_newline = true

[*.php]
indent_style = space
indent_size = 4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 1.1.0 - 2019-12-16

- Support for additional headers in requests - fixes [issue 56](https://github.com/QuickPay/quickpay-php-client/issues/56).

## 1.0.1 - 2017-09-14

- Fix for [issue 51](https://github.com/QuickPay/quickpay-php-client/issues/51).

## 1.0.0 - 2016-04-19

- First stable release of QuickPay PHP Client for QuickPay api v10.
Expand Down
4 changes: 2 additions & 2 deletions QuickPay/API/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function execute($request_type, $form = array())

// If additional data is delivered, we will send it along with the API request
if (is_array($form) && ! empty($form)) {
curl_setopt($this->client->ch, CURLOPT_POSTFIELDS, $this->httpBuildQuery($form, '', '&'));
curl_setopt($this->client->ch, CURLOPT_POSTFIELDS, $this->httpBuildQuery($form));
}

// Store received headers in temporary memory file, remember sent headers
Expand Down Expand Up @@ -200,7 +200,7 @@ protected function execute($request_type, $form = array())
*/
public function httpBuildQuery($query)
{
$query = http_build_query($query);
$query = http_build_query($query, '', '&');
$query = preg_replace('/%5B[0-9]+%5D/i', '%5B%5D', $query);
return $query;
}
Expand Down

0 comments on commit 31ec24f

Please sign in to comment.