Skip to content

Commit ff2c7e7

Browse files
committed
Effectively disables MultipartEnvironmentPostProcessor
1 parent 92e8cfc commit ff2c7e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MultipartEnvironmentPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
3737
// no user set property, set it to false.
3838
MapPropertySource propertySource = new MapPropertySource(MULTIPART_PROPERTY_SOURCE_NAME,
3939
Map.of(MULTIPART_ENABLED_PROPERTY, Boolean.FALSE));
40-
//environment.getPropertySources().addFirst(propertySource);
40+
// environment.getPropertySources().addFirst(propertySource);
4141
}
4242
}
4343

spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/common/MultipartEnvironmentPostProcessorTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
package org.springframework.cloud.gateway.server.mvc.common;
18+
1819
import org.junit.jupiter.api.Disabled;
1920
import org.junit.jupiter.api.Test;
2021

0 commit comments

Comments
 (0)