Skip to content

Commit

Permalink
python/http - Fix issue not saving file submitted by post
Browse files Browse the repository at this point in the history
Fixies #135
  • Loading branch information
phibos committed Jan 27, 2018
1 parent adc0c7d commit d2cd577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/python/dionaea/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def handle_POST(self):
Handle the POST method. Send the head and the file. But ignore the POST params.
Use the bistreams for a better analysis.
"""
if self.fp_tmp is None:
if self.fp_tmp is not None:
self.fp_tmp.seek(0)
form = cgi.FieldStorage(fp=self.fp_tmp, environ=self.env)
for field_name in form.keys():
Expand Down

0 comments on commit d2cd577

Please sign in to comment.