Polish "Introduce configuration property for strict servlet compliance"

See gh-37242
pull/37375/head
Moritz Halbritter 1 year ago
parent 05b87c5fe8
commit 92500720a7

@ -81,8 +81,8 @@ public class MultipartProperties {
private boolean resolveLazily = false;
/**
* Whether to resolve the multipart request strictly comply with the Servlet specification,
* only kicking in for "multipart/form-data" requests.
* Whether to resolve the multipart request strictly comply with the Servlet
* specification, only to be used for "multipart/form-data" requests.
*/
private boolean strictServletCompliance = false;

@ -182,7 +182,7 @@ class MultipartAutoConfigurationTests {
this.context.register(WebServerWithNothing.class, BaseConfiguration.class);
this.context.refresh();
StandardServletMultipartResolver multipartResolver = this.context
.getBean(StandardServletMultipartResolver.class);
.getBean(StandardServletMultipartResolver.class);
assertThat(multipartResolver).hasFieldOrPropertyWithValue("strictServletCompliance", true);
}

Loading…
Cancel
Save