Merge branch '5.3.x'

This commit is contained in:
Rossen Stoyanchev
2022-07-29 16:20:51 +03:00
4 changed files with 13 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
import org.springframework.core.log.LogFormatUtils;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.http.server.RequestPath;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.lang.Nullable;
@@ -986,7 +987,7 @@ public class DispatcherServlet extends FrameworkServlet {
}
else {
// Avoid request body parsing for form data
params = (StringUtils.startsWithIgnoreCase(contentType, "application/x-www-form-urlencoded") ||
params = (StringUtils.startsWithIgnoreCase(contentType, MediaType.APPLICATION_FORM_URLENCODED_VALUE) ||
!request.getParameterMap().isEmpty() ? "masked" : "");
}