Skip to content

Commit

Permalink
Fixed missing ssl verification option on request
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Nov 16, 2022
1 parent 110c00c commit 2436bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscar_python/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def make_request(c , path, method, data="", file="", token=""):
if token: headers = get_headers_with_token(token)
if data: return requests.request(method, url, headers=headers, verify=c.ssl, data=data)
if file: return requests.request(method, url, headers=headers, verify=c.ssl, files=file)
return requests.request(method, url, headers=headers)
return requests.request(method, url, headers=headers, verify=c.ssl)

""" Function to generate headers with basic authentication """
def get_headers(c):
Expand Down

0 comments on commit 2436bd7

Please sign in to comment.