-
-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After doing req.stream.read(), is there a way to read the POST data again? #417
Comments
I'll try to answer this then :) There is no way to read However, as a hack, i think you could create a hook that replaces the stream with a Note that if the content type is application/x-www-form-urlencoded the stream will have already been read, and the above aproach wouldn't work. You could also extend |
Generally, I'd like to avoid having Falcon itself automagically buffer the input stream, since as @tbug mentioned, there are different ways you would want to do it (or not do it at all), depending on your use case. You have to consider memory and performance overhead, security, latency, etc. |
That's fine, I can handle that, as long as Falcon has not already consumed the stream before I get a chance to read it..... :-) |
This should be handled by #493 |
As of Falcon 1.0.0, the framework will no longer automatically parse, by default, requests that have the content type "application/x-www-form-urlencoded". This allows the app to consume the stream itself, if desired. Alternatively, the automatic parsing can be enabled, but a custom subclass of Request could be used to define a new |
Combine with #471 |
req.stream.seek(0) does not seem to work.
The text was updated successfully, but these errors were encountered: