spring-boot/spring-boot-actuator/src
Andy Wilkinson 607dba97f8 Only access parameters in WebRequestTraceFilter when they are included
Previously, WebRequestTraceFilter would call request.getParameterMap()
before deciding whether or not the parameters should be included in
the trace. For a POST request, this had the unwanted side-effect
of always reading the request body.

This commit updates WebRequestTraceFilter so that it checks that
parameters are to be included in the trace before calling
request.getParameterMap()

Closes gh-5089
2016-02-12 10:26:23 +00:00
..
main Only access parameters in WebRequestTraceFilter when they are included 2016-02-12 10:26:23 +00:00
test Only access parameters in WebRequestTraceFilter when they are included 2016-02-12 10:26:23 +00:00