chore: handle font eof exception

This commit is contained in:
CaptainB 2024-07-17 15:42:02 +08:00 committed by 刘瑞斌
parent 3c39aa4498
commit 9b6184057f
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class RestControllerExceptionHandler {
@ExceptionHandler({EofException.class})
public ResponseEntity<Object> handleEofException(HttpServletRequest request, Exception e) {
String requestURI = request.getRequestURI();
if (StringUtils.startsWith(requestURI, "/assets")) {
if (StringUtils.startsWith(requestURI, "/assets") || StringUtils.startsWith(requestURI, "/fonts")) {
return ResponseEntity.internalServerError().body(null);
}
return ResponseEntity.internalServerError()