lib/datadog/appsec/contrib/rails/request.rb in ddtrace-1.5.0 vs lib/datadog/appsec/contrib/rails/request.rb in ddtrace-1.5.1

- old
+ new

@@ -5,9 +5,12 @@ module Contrib module Rails # Normalized extration of data from ActionDispatch::Request module Request def self.parsed_body(request) + # force body parameter parsing, which is done lazily by Rails + request.parameters + # usually Hash<String,String> but can be a more complex # Hash<String,String||Array||Hash> when e.g coming from JSON or # with Rails advanced param square bracket parsing body = request.env['action_dispatch.request.request_parameters']