提交 40c14c9a 编写于 作者: F fjy

fix case with no request params

上级 f0e9d6fd
......@@ -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());
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册