Skip to content

Commit d234345

Browse files
scragg0xdead-horse
authored andcommitted
docs(readme): update opts encode -> encoding (#103)
it's `encoding` in co-body https://github.com/cojs/co-body/blob/master/lib/json.js#L34
1 parent db193f5 commit d234345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ app.use(async ctx => {
4747
## Options
4848

4949
* **enableTypes**: parser will only parse when request type hits enableTypes, default is `['json', 'form']`.
50-
* **encode**: requested encoding. Default is `utf-8` by `co-body`.
50+
* **encoding**: requested encoding. Default is `utf-8` by `co-body`.
5151
* **formLimit**: limit of the `urlencoded` body. If the body ends up being larger than this limit, a 413 error code is returned. Default is `56kb`.
5252
* **jsonLimit**: limit of the `json` body. Default is `1mb`.
5353
* **textLimit**: limit of the `text` body. Default is `1mb`.

0 commit comments

Comments
 (0)