Update routes.dart

This commit is contained in:
Tobe Osakwe 2019-01-23 14:45:44 -05:00 committed by GitHub
parent 478d45bf47
commit d42dd2befb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {