Use the pure python io module to avoid some interaction between gunicorn, wsgi, and bufferedreader that prevents gunicorn from properly sending the files.
This commit is contained in:
parent
c9e1648781
commit
548f855f71
2 changed files with 3 additions and 6 deletions
|
@ -5,7 +5,7 @@ import magic
|
|||
from uuid import uuid4
|
||||
from flask import url_for, request, send_file, make_response, abort
|
||||
from flask.views import View
|
||||
from io import BufferedReader
|
||||
from _pyio import BufferedReader
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
Reference in a new issue