From 0819e08df5cec8f171f66f777f054d43af39b6d8 Mon Sep 17 00:00:00 2001 From: simonparadies <31405573+simonparadies@users.noreply.github.com> Date: Mon, 28 Aug 2017 12:23:55 +0200 Subject: [PATCH] Update NettyRoutingFilter.java Typo prevents https routing --- .../cloud/gateway/filter/NettyRoutingFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java index 2f6affd26..2882917d7 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java +++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java @@ -65,7 +65,7 @@ public class NettyRoutingFilter implements GlobalFilter, Ordered { URI requestUrl = exchange.getRequiredAttribute(GATEWAY_REQUEST_URL_ATTR); String scheme = requestUrl.getScheme(); - if (!scheme.equals("http") && !scheme.equals("https)")) { + if (!scheme.equals("http") && !scheme.equals("https")) { return chain.filter(exchange); }