Skip to content
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

Split form/query parsing into two steps #2038

Merged
merged 2 commits into from Mar 11, 2023
Merged

Commits on Mar 11, 2023

  1. Split form/query parsing into two steps

    First we parse the raw input into a stream of [key, value] pairs, and
    only after that do we expand that into the deep params hash.
    
    This allows a user to operate directly on the pair stream if they need
    to apply different semantics, without needing to rewind the input, and
    without creating a conflict with anything else (like a middleware) that
    wants to use Rack's standard GET / POST hash format.
    matthewd committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    736fb3f View commit details
    Browse the repository at this point in the history
  2. Update lib/rack/request.rb

    ioquatix committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    5b0a3e8 View commit details
    Browse the repository at this point in the history