Skip to content

Commit

Permalink
Don't include the leading ? in undertow request uri in absence of que…
Browse files Browse the repository at this point in the history
…ry string
  • Loading branch information
testinfected committed Nov 2, 2016
1 parent 77da6eb commit da9063a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ private void setRequestInfo(Request request, HttpServerExchange exchange) {
}

private String queryComponent(HttpServerExchange exchange) {
return exchange.getQueryString() != null ? "?" + exchange.getQueryString() : "";
return !exchange.getQueryString().isEmpty()? "?" + exchange.getQueryString() : "";
}

private void setHeaders(Request request, HttpServerExchange exchange) {
Expand Down

0 comments on commit da9063a

Please sign in to comment.