Replies: 3 comments 1 reply
-
Thank you very much for the report. The main reason that |
Beta Was this translation helpful? Give feedback.
-
Fixed in eb7843c, is it possible for you to test your app with the master branch to confirm this fixes the issue for you? |
Beta Was this translation helpful? Give feedback.
-
Thanks @jeremyevans! The fix on master does indeed fix the issue for us w/ Rack 3 👍 |
Beta Was this translation helpful? Give feedback.
-
In Rack 2 the below code works: Roda's
json_parser
parses the params and the post prints them out. In Rack 3 it breaks and the params are not parsed if any middleware before Roda attempts to read the params via aRack::Request
object.The issue seems to be that in Rack 3 attempting to read the params will set
env["rack.request.form_hash"] = {}
, where in Rack 2 it would not.json_parser
then checks to see ifrack.request.form_hash
is truthy, and if so does not attempt to parse the params via JSON.This broke for us upgrading to Rack 3, but I'm not sure whether this should be considered an issue w/ Roda or expected behavior.
Beta Was this translation helpful? Give feedback.
All reactions