fixed client.js
This commit is contained in:
parent
f22bd7d377
commit
a749e4f7d2
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user