mirror of https://github.com/apache/druid.git
fix case with no request params
This commit is contained in:
parent
f0e9d6fd83
commit
40c14c9a3c
|
@ -239,6 +239,11 @@ public class AsyncQueryForwardingServlet extends HttpServlet
|
|||
|
||||
private String makeUrl(String host, HttpServletRequest req)
|
||||
{
|
||||
String queryString = req.getQueryString();
|
||||
|
||||
if (queryString == null) {
|
||||
return String.format("http://%s%s", host, req.getRequestURI());
|
||||
}
|
||||
return String.format("http://%s%s?%s", host, req.getRequestURI(), req.getQueryString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue