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; private boolean resolveLazily = false;
/** /**
* Whether to resolve the multipart request strictly comply with the Servlet specification, * Whether to resolve the multipart request strictly comply with the Servlet
* only kicking in for "multipart/form-data" requests. * specification, only to be used for "multipart/form-data" requests.
*/ */
private boolean strictServletCompliance = false; private boolean strictServletCompliance = false;

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

Loading…
Cancel
Save