Skip to content

Commit f66a9d9

Browse files
authored
Merge pull request #17 from QuickPay/fix/16_callback
s/Quickpay/QuickPay/ for callback url header
2 parents 3579690 + effebb3 commit f66a9d9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## 1.0.1 Release
5+
## UNRELEASED
6+
### Fixed
7+
- [Callback header typo fix](https://github.com/QuickPay/quickpay-python-client/issues/16)
68

9+
## 1.0.1 Release
710
- Added support callback_url in API requests (#10)
811
- Upgraded to TLS1_1 (#11)

quickpay_api_client/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def perform(self, method, path, **kwargs):
5252

5353
callback_url = kwargs.pop("callback_url", None)
5454
if callback_url:
55-
headers["Quickpay-Callback-Url"] = callback_url
55+
headers["QuickPay-Callback-Url"] = callback_url
5656

5757
if self.secret:
5858
headers["Authorization"

quickpay_api_client/tests/api_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_callback_url_headers(self):
5050
res = self.api.perform("get", "/test", callback_url=callback_url)
5151

5252
req_headers = responses.calls[0].request.headers
53-
assert_equal(req_headers['Quickpay-Callback-Url'], callback_url)
53+
assert_equal(req_headers['QuickPay-Callback-Url'], callback_url)
5454

5555
@responses.activate
5656
def test_perform_when_raw(self):

0 commit comments

Comments
 (0)