diff --git a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java index aaab7b338..b1913f8d8 100644 --- a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java +++ b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java @@ -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("/")) {