diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index 74d159a..2c5ba56 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -75,7 +75,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) {