Skip to content

Commit

Permalink
Merge pull request Netflix#284 from vtahlani/patch-1
Browse files Browse the repository at this point in the history
Update SurgicalDebugFilter.groovy
  • Loading branch information
mikeycohen authored Dec 7, 2016
2 parents c87e0c2 + 0516a49 commit f0167b9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public abstract class SurgicalDebugFilter extends ZuulFilter {
DynamicStringProperty routeHost = DynamicPropertyFactory.getInstance().getStringProperty(ZuulConstants.ZUUL_DEBUG_HOST, null);

if (routeVip.get() != null || routeHost.get() != null) {
RequestContext.currentContext.routeHost = routeHost.get();
RequestContext.currentContext.routeVIP = routeVip.get();
//RequestContext.currentContext.routeHost = routeHost.get();
RequestContext.getCurrentContext().setRouteHost( new URL(routeHost.get()));
//RequestContext.currentContext.routeVIP = routeVip.get();
RequestContext.getCurrentContext().setRouteHost( new URL(routeVip.get()));
RequestContext.currentContext.addZuulRequestHeader(ZuulHeaders.X_ZUUL_SURGICAL_FILTER, "true");
if (HTTPRequestUtils.getInstance().getQueryParams() == null) {
RequestContext.getCurrentContext().setRequestQueryParams(new HashMap<String, List<String>>());
Expand Down

0 comments on commit f0167b9

Please sign in to comment.