fixed client.js
This commit is contained in:
parent
f22bd7d377
commit
a749e4f7d2
@ -28,7 +28,7 @@ public class ClasspathStaticFileHandler implements HttpHandler {
|
|||||||
if (rel.startsWith("/")) {
|
if (rel.startsWith("/")) {
|
||||||
rel = rel.substring(1);
|
rel = rel.substring(1);
|
||||||
}
|
}
|
||||||
String resourcePath = basePath + "/" + rel;
|
String resourcePath = basePath + (rel.isEmpty() ? "" : "/" + rel);
|
||||||
serveResource(exchange, resourcePath);
|
serveResource(exchange, resourcePath);
|
||||||
} else {
|
} else {
|
||||||
Responses.text(exchange, 404, "Not found");
|
Responses.text(exchange, 404, "Not found");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user