From 9aa81f21a4440af8e278e8281d670d323c6cd5c4 Mon Sep 17 00:00:00 2001 From: witchdocsec <107813117+witchdocsec@users.noreply.github.com> Date: Fri, 24 May 2024 23:18:12 +0100 Subject: [PATCH] Update balsamic.py --- balsamic/balsamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/balsamic/balsamic.py b/balsamic/balsamic.py index 2187112..ba876c3 100644 --- a/balsamic/balsamic.py +++ b/balsamic/balsamic.py @@ -31,11 +31,11 @@ class Payloads: def updatecmd(new_cmd): Utility.command = new_cmd -def webreq(method, url, payload, param=None, cook=None, custom_headers=None): +def webreq(method, url, payload, param=None, cook=None, custom_header=None): methods = ["get", "post", "put", "patch"] - headers = custom_headers or {} payload = Utility.urlpickle(payload) payload = payload.decode("utf-8") + headers = {custom_header:payload} or {} if method in methods: request_method = getattr(requests, method) if param: