From e1684330a95e465614d0030c3cf315560adadc08 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Wed, 21 Dec 2016 15:27:07 -0500 Subject: [PATCH] Fixed `heades` --- README.md | 2 +- lib/src/http/server.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d86522b1..0a2dea28 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/lib/src/http/server.dart b/lib/src/http/server.dart index c56a461b..3bcdbe16 100644 --- a/lib/src/http/server.dart +++ b/lib/src/http/server.dart @@ -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("${e.message}"); res.write("

${e.message}