Skip to content

Commit 8ab0279

Browse files
committed
Set spring.cloud.gateway.forwarded.by.enabled=true
See gh-2658
1 parent 8d79a17 commit 8ab0279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/GatewayIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
6363
import static org.springframework.cloud.gateway.test.TestUtils.getMap;
6464

65-
@SpringBootTest(webEnvironment = RANDOM_PORT)
65+
@SpringBootTest(webEnvironment = RANDOM_PORT, properties = "spring.cloud.gateway.forwarded.by.enabled=true")
6666
@DirtiesContext
6767
@SuppressWarnings("unchecked")
6868
@ExtendWith(OutputCaptureExtension.class)

0 commit comments

Comments
 (0)