You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,11 @@ object after the middleware (i.e. `req.body`).
76
76
The `json` function takes an optional `options` object that may contain any of
77
77
the following keys:
78
78
79
+
##### defaultCharset
80
+
81
+
Specify the default character set for the json content if the charset is not
82
+
specified in the `Content-Type` header of the request. Defaults to `utf-8`.
83
+
79
84
##### inflate
80
85
81
86
When set to `true`, then deflated (compressed) bodies will be inflated; when
@@ -291,7 +296,7 @@ Whether to decode numeric entities such as `☺` when parsing an iso-8859-1
291
296
form. Defaults to `false`.
292
297
293
298
294
-
#### depth
299
+
#####depth
295
300
296
301
The `depth` option is used to configure the maximum depth of the `qs` library when `extended` is `true`. This allows you to limit the amount of keys that are parsed and can be useful to prevent certain types of abuse. Defaults to `32`. It is recommended to keep this value as low as possible.
0 commit comments