Polish "Introduce configuration property for strict servlet compliance"
See gh-37242
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user