From d084b1bf6c35c709050571acd051d7e7b4328fb2 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Tue, 7 Jun 2016 17:21:30 +1000 Subject: [PATCH] Change the default origin in zuul-simple-webapp to be http://httpbin.org as it's more useful for testing than the previous http://apache.org --- .../src/main/groovy/filters/pre/PreDecorationFilter.groovy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zuul-simple-webapp/src/main/groovy/filters/pre/PreDecorationFilter.groovy b/zuul-simple-webapp/src/main/groovy/filters/pre/PreDecorationFilter.groovy index 2925753cdf..8003cef895 100644 --- a/zuul-simple-webapp/src/main/groovy/filters/pre/PreDecorationFilter.groovy +++ b/zuul-simple-webapp/src/main/groovy/filters/pre/PreDecorationFilter.groovy @@ -43,10 +43,7 @@ class PreDecorationFilter extends ZuulFilter { RequestContext ctx = RequestContext.getCurrentContext() // sets origin - ctx.setRouteHost(new URL("http://apache.org/")); - - // set origin host header - ctx.addZuulRequestHeader("Host","apache.org"); + ctx.setRouteHost(new URL("http://httpbin.org")); // sets custom header to send to the origin ctx.addOriginResponseHeader("cache-control", "max-age=3600");