Skip to content

Commit

Permalink
Change the default origin in zuul-simple-webapp to be http://httpbin.org
Browse files Browse the repository at this point in the history
 as it's more useful for testing than the previous http://apache.org
  • Loading branch information
kerumai committed Jun 7, 2016
1 parent e5aaa55 commit d084b1b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d084b1b

Please sign in to comment.