CORS-able
This commit is contained in:
parent
376e2095ba
commit
1bb077a3d9
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue