Skip to content

Commit 1e387cb

Browse files
committed
add ssl verify argument
1 parent 3b980b1 commit 1e387cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quickpay_api_client/api.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def fulfill(self, method, *args, **kwargs):
4545

4646
def perform(self, method, path, **kwargs):
4747
raw = kwargs.pop('raw', False)
48+
ssl_verify = kwargs.pop("verify", True)
4849
url = "{0}{1}".format(self.base_url, path)
4950

5051
headers = {
@@ -73,12 +74,14 @@ def perform(self, method, path, **kwargs):
7374
data=body,
7475
params=query,
7576
headers=headers,
76-
timeout=self.timeout)
77+
timeout=self.timeout,
78+
verify=ssl_verify)
7779
else:
7880
response = self.fulfill(method, url,
7981
params=query,
8082
headers=headers,
81-
timeout=self.timeout)
83+
timeout=self.timeout,
84+
verify=ssl_verify)
8285

8386
if response.headers.get('content-type') == 'application/json':
8487
body = response.json()

0 commit comments

Comments
 (0)