From 06af5078e09b0010f9f01cdc7e0d21552a9b1ef6 Mon Sep 17 00:00:00 2001 From: Tobe Osakwe Date: Wed, 23 Jan 2019 14:45:20 -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 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) {