@gunnarmarten this should allow for what you want to do. at the very least, it should not crash the server anymore.
@tommay if you have a chance, i'd appreciate your thoughts on this as well.
what happens here is if you POST to /?foo=bar with a JSON array body, it will not get merged in to params, instead the parsed array will be available from the new request_body reader. in all other cases, request_body is functionally the same as request.body.to_s.
@gunnarmarten this should allow for what you want to do. at the very least, it should not crash the server anymore.
@tommay if you have a chance, i'd appreciate your thoughts on this as well.
what happens here is if you POST to /?foo=bar with a JSON array body, it will not get merged in to params, instead the parsed array will be available from the new
request_body
reader. in all other cases,request_body
is functionally the same asrequest.body.to_s
.see #48