You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not work at the moment when serving falcon with wsgiref.simple_server.make_server.
Roughly, this gives an io.BufferedReader instance as request body (req.stream in falcon), which seems to consume all the stream when calling readline on it (which is what cgi does on FieldStorage.parse_multi).
The text was updated successfully, but these errors were encountered:
the patch not work
but you could add the bellow line to let it work
from StringIO import StringIO
new_stream = StringIO(req.stream.read())
form = self.parse(stream=new_stream, environ=req.env)
but this method will duplicate the memory usage i think
which might cause problem while processing large file uploading, also it break the streamming processing
It does not work at the moment when serving falcon with
wsgiref.simple_server.make_server
.Roughly, this gives an io.BufferedReader instance as request body (req.stream in falcon), which seems to consume all the stream when calling
readline
on it (which is what cgi does onFieldStorage.parse_multi
).The text was updated successfully, but these errors were encountered: