diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -161,10 +161,10 @@ def key_commitment(): if form.is_submitted(): if form.validate(): if form.mode.data == 'sample': - jpeg_bytes = open('static/axolotl.jpg', 'rb').read() - bmp_bytes = open('static/kitten.bmp', 'rb').read() - # return send_file('static/sample-polyglot.enc', - # mimetype='application/octet-stream', as_attachment=True, download_name="polyglot.enc") + # jpeg_bytes = open('static/axolotl.jpg', 'rb').read() + # bmp_bytes = open('static/kitten.bmp', 'rb').read() + return send_file('static/sample-polyglot.enc', + mimetype='application/octet-stream', as_attachment=True, download_name="polyglot.enc") else: jpeg_bytes = form.jpeg.data.read() bmp_bytes = form.bmp.data.read() |