From ac140ce40c35e4077848b8752a37d1d5abe863bf Mon Sep 17 00:00:00 2001 From: Johnny Huirilef Date: Tue, 20 Oct 2026 22:46:55 -0300 Subject: [PATCH] docs: fix depth error description The README said that the error is not thrown when depth is 32, the default. The parser always uses strictDepth, so with the default value an input with 33 or more levels of nesting gets a 400 error. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58ecdb40..92ac7d2b 100644 --- a/README.md +++ b/README.md @@ -411,7 +411,7 @@ property is set to the encoding that is unsupported. ### The input exceeded the depth -This error occurs when using `bodyParser.urlencoded` with the `extended` property set to `true` and the input exceeds the configured `depth` option. The `status` property is set to `400`. It is recommended to review the `depth` option and evaluate if it requires a higher value. When the `depth` option is set to `32` (default value), the error will not be thrown. +This error occurs when using `bodyParser.urlencoded` with the `extended` property set to `true` and the input exceeds the configured `depth` option. The `status` property is set to `400`. It is recommended to review the `depth` option and evaluate if it requires a higher value. With the default `depth` of `32`, an input with 33 or more levels of nesting gets this error. ## Examples