Skip to content

Commit

Permalink
postada not established when empty fixes xmendez#105
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Dec 19, 2018
1 parent dacdb37 commit 2dd3be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wfuzz/externals/reqresp/Request.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def to_pycurl_object(c, req):
else:
c.setopt(pycurl.CUSTOMREQUEST, req.method)

if req.postdata:
if req.postdata is not None:
c.setopt(pycurl.POSTFIELDS, python2_3_convert_to_unicode(req.postdata))

c.setopt(pycurl.FOLLOWLOCATION, 1 if req.followLocation else 0)
Expand Down

0 comments on commit 2dd3be0

Please sign in to comment.