Update routes.dart
This commit is contained in:
parent
62670f0771
commit
06af5078e0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue