Fixed heades
This commit is contained in:
parent
530eb11bf8
commit
e1684330a9
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_framework
|
||||
|
||||
[![pub 1.0.0-dev.36](https://img.shields.io/badge/pub-1.0.0--dev.36-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
||||
[![pub 1.0.0-dev.37](https://img.shields.io/badge/pub-1.0.0--dev.37-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
||||
[![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework)
|
||||
|
||||
Core libraries for the Angel Framework.
|
|
@ -78,7 +78,7 @@ class Angel extends AngelBase {
|
|||
/// Default error handler, show HTML error page
|
||||
AngelErrorHandler _errorHandler =
|
||||
(AngelHttpException e, req, ResponseContext res) {
|
||||
res.heades[HttpHeaders.CONTENT_TYPE] = ContentType.HTML.toString();
|
||||
res.headers[HttpHeaders.CONTENT_TYPE] = ContentType.HTML.toString();
|
||||
res.statusCode = e.statusCode;
|
||||
res.write("<!DOCTYPE html><html><head><title>${e.message}</title>");
|
||||
res.write("</head><body><h1>${e.message}</h1><ul>");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_framework
|
||||
version: 1.0.0-dev.36
|
||||
version: 1.0.0-dev.37
|
||||
description: Core libraries for the Angel framework.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_framework
|
||||
|
|
Loading…
Reference in a new issue