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 @Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws IOException { protected void service(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String path = req.getPathInfo(); String path = req.getRequestURI();
if (path != null) { if (path != null) {
log.debug("Serving " + path); log.debug("Serving " + path);
if (!path.startsWith("/")) { if (!path.startsWith("/")) {