Update routes.dart
This commit is contained in:
parent
478d45bf47
commit
d42dd2befb
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ AngelConfigurer configureServer(FileSystem fileSystem) {
|
||||||
|
|
||||||
var oldErrorHandler = app.errorHandler;
|
var oldErrorHandler = app.errorHandler;
|
||||||
app.errorHandler = (e, req, res) async {
|
app.errorHandler = (e, req, res) async {
|
||||||
if (!req.accepts('text/html'))
|
if (!req.accepts('text/html', strict: true))
|
||||||
return await oldErrorHandler(e, req, res);
|
return await oldErrorHandler(e, req, res);
|
||||||
else {
|
else {
|
||||||
if (e.statusCode == 404) {
|
if (e.statusCode == 404) {
|
||||||
|
|
Loading…
Reference in a new issue