You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When router.get(STATIC_URL).handler(StaticHandler.create().setAlwaysAsyncFS(true));
If it can't find a file, it throws a java.nio.file.NoSuchFileException rather than 404 error.
The exception may be thrown in if (alwaysAsyncFS || useAsyncFS) {
fs.props(file, resultHandler);
} in getFileProps method in StaticHandlerImpl class.
When I setAlwaysAsyncFS(false) or I don't call setAlwaysAsyncFS(), if it can't find a file ,it return 404 error.That's fine.
The text was updated successfully, but these errors were encountered:
When
router.get(STATIC_URL).handler(StaticHandler.create().setAlwaysAsyncFS(true));
If it can't find a file, it throws a java.nio.file.NoSuchFileException rather than 404 error.
The exception may be thrown in
if (alwaysAsyncFS || useAsyncFS) {
in getFileProps method in StaticHandlerImpl class.fs.props(file, resultHandler);
}
When I setAlwaysAsyncFS(false) or I don't call setAlwaysAsyncFS(), if it can't find a file ,it return 404 error.That's fine.
The text was updated successfully, but these errors were encountered: