Skip to content

Commit f1dff37

Browse files
committed
docs: add documentation for onProtoPoisoning option in README
1 parent 3f26422 commit f1dff37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`
116116
where `buf` is a `Buffer` of the raw request body and `encoding` is the
117117
encoding of the request. The parsing can be aborted by throwing an error.
118118

119+
##### onProtoPoisoning
120+
121+
Defines what action must be taken when parsing a JSON object with `__proto__`
122+
119123
### bodyParser.raw([options])
120124

121125
Returns middleware that parses all bodies as a `Buffer` and only looks at

0 commit comments

Comments
 (0)