Fixed heades

This commit is contained in:
thosakwe 2016-12-21 15:27:07 -05:00
parent 530eb11bf8
commit e1684330a9
3 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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>");

View file

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