Merge branch '4.1.x' into 4.2.x

This commit is contained in:
spencergibb
2025-01-28 13:30:11 -05:00
2 changed files with 3 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ public class MultipartEnvironmentPostProcessor implements EnvironmentPostProcess
// no user set property, set it to false.
MapPropertySource propertySource = new MapPropertySource(MULTIPART_PROPERTY_SOURCE_NAME,
Map.of(MULTIPART_ENABLED_PROPERTY, Boolean.FALSE));
//environment.getPropertySources().addFirst(propertySource);
// environment.getPropertySources().addFirst(propertySource);
}
}

View File

@@ -16,6 +16,7 @@
package org.springframework.cloud.gateway.server.mvc.common;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.mock.env.MockEnvironment;
@@ -27,6 +28,7 @@ import static org.springframework.cloud.gateway.server.mvc.common.MultipartEnvir
public class MultipartEnvironmentPostProcessorTests {
@Test
@Disabled
void multipartDisabledByDefault() {
MockEnvironment environment = new MockEnvironment();
MultipartEnvironmentPostProcessor processor = new MultipartEnvironmentPostProcessor();