diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index a75a12d5..ad91ef9c 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -47,7 +47,7 @@ AngelConfigurer configureServer(FileSystem fileSystem) { var oldErrorHandler = app.errorHandler; app.errorHandler = (e, req, res) async { - if (!req.accepts('text/html')) + if (!req.accepts('text/html', strict: true)) return await oldErrorHandler(e, req, res); else { if (e.statusCode == 404) {