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
fix: serverTimeout default to 0 (no timeout) (#5325)
typo fix on onProtoPoisoning, should be 400 response
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Updated the response code for `Prototype-Poisoning` from `403` to
`400`.
- **Configuration Changes**
- Changed the default server timeout setting to 0 (no timeout).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardExpand all lines: index.d.ts
+3-3
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ declare module 'egg' {
330
330
* @property {Number} queryString.parameterLimit - parameter number limit, default 1000
331
331
* @property {String[]} enableTypes - parser will only parse when request type hits enableTypes, default is ['json', 'form']
332
332
* @property {Object} extendTypes - support extend types
333
-
* @property {String} onProtoPoisoning - Defines what action must take when parsing a JSON object with `__proto__`. Possible values are `'error'`, `'remove'` and `'ignore'`. Default is `'error'`, it will return `403` response when `Prototype-Poisoning` happen.
333
+
* @property {String} onProtoPoisoning - Defines what action must take when parsing a JSON object with `__proto__`. Possible values are `'error'`, `'remove'` and `'ignore'`. Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen.
334
334
*/
335
335
bodyParser: {
336
336
enable: boolean;
@@ -352,7 +352,7 @@ declare module 'egg' {
352
352
form: string[];
353
353
text: string[];
354
354
};
355
-
/** Default is `'error'`, it will return `403` response when `Prototype-Poisoning` happen. */
355
+
/** Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen. */
0 commit comments