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:
Jake Moshenko 2014-09-09 22:28:25 -04:00
parent c9e1648781
commit 548f855f71
2 changed files with 3 additions and 6 deletions

View file

@ -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__)