Update balsamic.py

main
witchdocsec 2024-05-24 23:18:12 +01:00 committed by GitHub
parent 2a7920b454
commit 9aa81f21a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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: