koajs / bodyparser

Koa body parsing middleware
MIT License
1.31k stars 116 forks source link

Set this.request.body to {} if no body #14

Closed RHavar closed 9 years ago

RHavar commented 9 years ago

Or is there a good reason not to? It gets a bit tedious having to write: if (this.request.body && this.request.body.foo)

dead-horse commented 9 years ago

LGTM, can you send a PR for this?

RHavar commented 9 years ago

Closing, we can discuss on PR #15