Skip to content

Commit

Permalink
Check if param is null
Browse files Browse the repository at this point in the history
Fixes issue swisskyrepo#36, POST body without param
  • Loading branch information
kxynos committed Mar 28, 2023
1 parent 25a0a1e commit 2ddb048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def do_request(self, param, value, timeout=3, stream=False):

# Handle FORM data
else:
if param == '': data_injected = value
r = requests.post(
self.protocol + "://" + self.host + self.action,
headers=self.headers,
Expand Down

0 comments on commit 2ddb048

Please sign in to comment.