Skip to content

Commit

Permalink
doc: fix req.body empty object note
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Feb 19, 2022
1 parent d6be2b3 commit 3f5e93e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ var bodyParser = require('body-parser')

The `bodyParser` object exposes various factories to create middlewares. All
middlewares will populate the `req.body` property with the parsed body when
the `Content-Type` request header matches the `type` option, or an empty
object (`{}`) if there was no body to parse, the `Content-Type` was not matched,
or an error occurred.
the `Content-Type` request header matches the `type` option.

The various errors returned by this module are described in the
[errors section](#errors).
Expand Down

0 comments on commit 3f5e93e

Please sign in to comment.