44
This commit is contained in:
parent
466b05c347
commit
78865227d1
4 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_framework
|
||||
|
||||
[![pub 1.0.0-dev.43](https://img.shields.io/badge/pub-1.0.0--dev.43-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
||||
[![pub 1.0.0-dev.44](https://img.shields.io/badge/pub-1.0.0--dev.44-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.
|
||||
|
|
|
@ -13,6 +13,10 @@ class AngelBase extends Routable {
|
|||
|
||||
Container _container = new Container();
|
||||
|
||||
/// When set to true, the original body bytes will be stored
|
||||
/// on requests. `false` by default.
|
||||
bool storeOriginalBuffer = false;
|
||||
|
||||
/// A [Container] used to inject dependencies.
|
||||
Container get container => _container;
|
||||
|
||||
|
|
|
@ -87,7 +87,9 @@ class RequestContext extends Extensible {
|
|||
.replaceAll(new RegExp(r'/+$'), '');
|
||||
ctx._io = request;
|
||||
|
||||
ctx._body = (await parseBody(request)) ?? {};
|
||||
ctx._body = (await parseBody(request,
|
||||
storeOriginalBuffer: app.storeOriginalBuffer == true)) ??
|
||||
{};
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_framework
|
||||
version: 1.0.0-dev.43
|
||||
version: 1.0.0-dev.44
|
||||
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