CORS-able

This commit is contained in:
thosakwe 2016-10-07 17:39:41 -04:00
parent 376e2095ba
commit 1bb077a3d9
2 changed files with 2 additions and 2 deletions

View file

@ -227,10 +227,10 @@ class Angel extends AngelBase {
_finalizeResponse(HttpRequest request, ResponseContext res) async {
try {
_afterProcessed.add(request);
if (!res.willCloseItself) {
res.responseData.forEach((blob) => request.response.add(blob));
await request.response.close();
_afterProcessed.add(request);
}
} catch (e) {
failSilently(request, res);

View file

@ -1,5 +1,5 @@
name: angel_framework
version: 1.0.0-dev.21
version: 1.0.0-dev.22
description: Core libraries for the Angel framework.
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_framework