Dev server: fix bug when proxying URLs with characters not allowed in URLs

This commit is contained in:
Alexey Andreev 2019-02-22 17:19:08 +03:00
parent bd00575219
commit 2095e52dc2

View File

@ -292,7 +292,7 @@ public class CodeServlet extends HttpServlet {
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String path = req.getPathInfo();
String path = req.getRequestURI();
if (path != null) {
log.debug("Serving " + path);
if (!path.startsWith("/")) {