From 3a71d6c72837287afe376bbeecc9091d48592b4a Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Sun, 28 Aug 2022 02:50:49 -0400 Subject: fix sample --- app.py | 8 ++++---- static/sample-polyglot.enc | Bin 135808 -> 135984 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index cf3ac79..4029b7f 100644 --- a/app.py +++ b/app.py @@ -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() diff --git a/static/sample-polyglot.enc b/static/sample-polyglot.enc index 58730dd..6885b73 100644 Binary files a/static/sample-polyglot.enc and b/static/sample-polyglot.enc differ -- cgit v1.2.3