diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2018-07-20 21:06:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 21:06:25 +0200 |
commit | e7fe07e7f08a43d3f1bdcc522233a01fca184c28 (patch) | |
tree | 2183ddeed001aa667fbd4a896069fccdd83870b1 /actionpack/lib | |
parent | 1a0bcc3b49e05eba852912f609a20c36a9656857 (diff) | |
parent | 9b51ee9f925e9c1f64d0bae2039ff70cea0d0959 (diff) | |
download | rails-e7fe07e7f08a43d3f1bdcc522233a01fca184c28.tar.gz rails-e7fe07e7f08a43d3f1bdcc522233a01fca184c28.tar.bz2 rails-e7fe07e7f08a43d3f1bdcc522233a01fca184c28.zip |
Merge pull request #33392 from azbshiri/actionpack/prevent-request-encoder-to-parse-nil-params
Prevent `RequestEncoder#encode_params` to parse falsey params
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/request_encoder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/request_encoder.rb b/actionpack/lib/action_dispatch/testing/request_encoder.rb index 01246b7a2e..9889f61951 100644 --- a/actionpack/lib/action_dispatch/testing/request_encoder.rb +++ b/actionpack/lib/action_dispatch/testing/request_encoder.rb @@ -34,7 +34,7 @@ module ActionDispatch end def encode_params(params) - @param_encoder.call(params) + @param_encoder.call(params) if params end def self.parser(content_type) |