Skip to content

Commit 31ec24f

Browse files
authored
Merge pull request #62 from QuickPay/Prepare-for-release-1.1
Prepare for release 1.1
2 parents d62ebda + 130ab7a commit 31ec24f

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
5+
[*.php]
6+
indent_style = space
7+
indent_size = 4

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## 1.1.0 - 2019-12-16
4+
5+
- Support for additional headers in requests - fixes [issue 56](https://github.com/QuickPay/quickpay-php-client/issues/56).
6+
7+
## 1.0.1 - 2017-09-14
8+
9+
- Fix for [issue 51](https://github.com/QuickPay/quickpay-php-client/issues/51).
10+
311
## 1.0.0 - 2016-04-19
412

513
- First stable release of QuickPay PHP Client for QuickPay api v10.

QuickPay/API/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected function execute($request_type, $form = array())
160160

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

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

0 commit comments

Comments
 (0)