egg 3.24.0 → 3.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/config.default.js +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/config/config.default.js
CHANGED
|
@@ -359,7 +359,7 @@ module.exports = appInfo => {
|
|
|
359
359
|
config.workerStartTimeout = 10 * 60 * 1000;
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
|
-
* server timeout in milliseconds, default to
|
|
362
|
+
* server timeout in milliseconds, default to 0 (no timeout).
|
|
363
363
|
*
|
|
364
364
|
* for special request, just use `ctx.req.setTimeout(ms)`
|
|
365
365
|
*
|
package/index.d.ts
CHANGED
|
@@ -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 `
|
|
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 `
|
|
355
|
+
/** Default is `'error'`, it will return `400` response when `Prototype-Poisoning` happen. */
|
|
356
356
|
onProtoPoisoning: 'error' | 'remove' | 'ignore';
|
|
357
357
|
};
|
|
358
358
|
|
|
@@ -532,7 +532,7 @@ declare module 'egg' {
|
|
|
532
532
|
onClientError(err: Error, socket: Socket, app: EggApplication): ClientErrorResponse | Promise<ClientErrorResponse>;
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
|
-
* server timeout in milliseconds, default to
|
|
535
|
+
* server timeout in milliseconds, default to 0 (no timeout).
|
|
536
536
|
*
|
|
537
537
|
* for special request, just use `ctx.req.setTimeout(ms)`
|
|
538
538
|
*
|