Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gunicorn+gevent/eventlet+flask+send_file, cStringIO? #1160
Traceback (most recent call last):
The issue comes from the removal of the fileobject testing:
I am really not sure we shouldn't be strict there and only accept fileobjects providing a
@yijunjun in the mean time why do you want to use sendfile here? Why not simply returning an iterator (the StringIO would be enough). Gunicorn will stream it.