-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Optionally set encoding of rack.input
in MockRequest.env_for
.
#2116
Conversation
b0b9e74
to
ed065dc
Compare
rack.input
in MockRequest.env_for
.
I'm against this change. I believe |
I am against introducing |
Shouldn't the input always be in binary mode? More importantly it should be in binary mode before Rack ever gets its hands on it. If it isn't in binary mode, then I agree its a bug in the user's code. Could we just delete this line, or change it to call |
btw, I recognize that just removing the I'm not sure that the inputs to I don't think we should force the input to |
Maybe |
If we want to limit the allowed input stream methods to just |
If "IO-like" is causing confusion, then yes, let's remove it. However, my interpretation is, that for the methods that are listed, should behave similarly to the methods as implemented on In other words, one could supply an |
Possible fix for #2115.