Skip to content

Commit c5e76b1

Browse files
committed
AssetHandler: silent 404
1 parent b515fb8 commit c5e76b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jooby/src/main/java/io/jooby/AssetHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public AssetHandler(AssetSource... sources) {
7171
}
7272
// Still null?
7373
if (asset == null) {
74-
ctx.sendError(new StatusCodeException(StatusCode.NOT_FOUND));
74+
ctx.send(StatusCode.NOT_FOUND);
7575
return ctx;
7676
}
7777
}

0 commit comments

Comments
 (0)