Skip to content

Commit

Permalink
Update Re2Pcap.py
Browse files Browse the repository at this point in the history
fix 
TypeError: send_file() got an unexpected keyword argument 'attachment_filename' from Cisco-Talos#8 and pallets/flask#4753
  • Loading branch information
passwa11 authored Feb 22, 2023
1 parent 3347d65 commit 65982fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Re2Pcap/Re2Pcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def createPcap():
time.sleep(5)
childProc.communicate()
if not childProc.returncode:
return send_file('io/Re2Pcap-result.pcap', as_attachment=True, attachment_filename=resultFileName)
return send_file('io/Re2Pcap-result.pcap', as_attachment=True, download_name=resultFileName)
else:
return jsonify(error='Something went Wrong :( Please Check the Input/ Error log and Try Again ....')
else:
Expand Down

0 comments on commit 65982fd

Please sign in to comment.