From f303286b90fc7313cfc1dd254c28eee5ae467955 Mon Sep 17 00:00:00 2001 From: "Antoine.L" <59887731+onSec-fr@users.noreply.github.com> Date: Fri, 22 May 2020 15:13:13 +0200 Subject: [PATCH] Update utils.py Fix : missing headers for GET requests. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 3bb8335..893a7d3 100644 --- a/utils.py +++ b/utils.py @@ -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