Skip to content

POST params missing #189

@pedrocunha

Description

@pedrocunha

Hey guys, I'm having issues detecting the POST params. Unfortunately the issue is different than #156.

Here is the problem:

# config/initializers/rack-attack.rb
class Rack::Attack
  blacklist('...') do |req|
        # set pry session here, see below
  end
end

Do a POST on a Rails route with some params and pry stops inside the blacklist block:

[1] pry(Rack::Attack)> req.env["action_dispatch.request.request_parameters"]
=> {"email"=>"foo@gmail.com", "password"=>"pasdasda"}
[2] pry(Rack::Attack)> req.params
=> {}

As you can see req.env has the request params, but the same are not present on #params. Am I missing something out?

Thanks in advance,
Pedro

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions