fixed client.js

This commit is contained in:
Radek Davidek 2026-03-20 14:02:25 +01:00
parent f22bd7d377
commit a749e4f7d2

View File

@ -28,7 +28,7 @@ public class ClasspathStaticFileHandler implements HttpHandler {
if (rel.startsWith("/")) {
rel = rel.substring(1);
}
String resourcePath = basePath + "/" + rel;
String resourcePath = basePath + (rel.isEmpty() ? "" : "/" + rel);
serveResource(exchange, resourcePath);
} else {
Responses.text(exchange, 404, "Not found");