diff --git a/zuul-simple-webapp/src/main/groovy/filters/route/SimpleHostRequest.groovy b/zuul-simple-webapp/src/main/groovy/filters/route/SimpleHostRequest.groovy index 1ab3d61d99..650490c088 100644 --- a/zuul-simple-webapp/src/main/groovy/filters/route/SimpleHostRequest.groovy +++ b/zuul-simple-webapp/src/main/groovy/filters/route/SimpleHostRequest.groovy @@ -217,9 +217,9 @@ class SimpleHostRoutingFilter extends ZuulFilter { headers.each { Debug.addRequestDebug("ZUUL::> ${it.name} ${it.value}") } - String query = request.queryString + String query = request.queryString != null ? "?" + request.queryString : "" - Debug.addRequestDebug("ZUUL:: > ${verb} ${uri}?${query} HTTP/1.1") + Debug.addRequestDebug("ZUUL:: > ${verb} ${uri}${query} HTTP/1.1") if (requestEntity != null) { requestEntity = debugRequestEntity(requestEntity) }