From d42dd2befbe0c7666c58ef24b85b6d87031ec196 Mon Sep 17 00:00:00 2001 From: Tobe Osakwe Date: Wed, 23 Jan 2019 14:45:44 -0500 Subject: [PATCH] Update routes.dart --- lib/src/routes/routes.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {