Update utils.py

Fix : missing headers for GET requests.
pull/24/head
Antoine.L 2020-05-22 15:13:13 +02:00 committed by GitHub
parent 6176bd3afc
commit f303286b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def requester(url, method, payload, headers=None):
print("\033[91m/!\ API didn't respond correctly to a POST method !\033[0m")
return None
else:
r = requests.get(url + "?query={}".format(payload), verify=False)
r = requests.get(url + "?query={}".format(payload), verify=False, headers=headers)
return r