Skip to content

Commit

Permalink
Merge pull request Netflix#57 from pmotyka/1.x
Browse files Browse the repository at this point in the history
check if query string is null before string concatenation
  • Loading branch information
kerumai committed Apr 22, 2015
2 parents aac4547 + 0adbea8 commit dab12e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit dab12e3

Please sign in to comment.