@@ -74,7 +74,7 @@ public void post_server_configuration_max_form_data(String scheme, boolean chunk
7474 // Exceeded
7575 withScheme (scheme )
7676 .withChunked (chunked )
77- .withBodyParameterCount (42 * 1024 ) // 43,008
77+ .withBodyParameterCount (42 * 1024 )
7878 .withBodyParameterSize (128 )
7979 // 4k * 33 > 128k
8080 .withConfiguration (config -> config .withMaxRequestBodySize (Map .of (ContentTypes .Form , 128 * 1024 )))
@@ -89,7 +89,7 @@ public void post_server_configuration_max_form_data(String scheme, boolean chunk
8989 // Large, but max size has been disabled
9090 withScheme (scheme )
9191 .withChunked (chunked )
92- .withBodyParameterCount (42 * 1024 ) // 43,008
92+ .withBodyParameterCount (42 * 1024 )
9393 .withBodyParameterSize (128 )
9494 // Disable the limit
9595 .withConfiguration (config -> config .withMaxRequestBodySize (Map .of (ContentTypes .Form , -1 )))
@@ -105,9 +105,9 @@ public void post_server_configuration_max_form_data(String scheme, boolean chunk
105105 // Large, enforce using default w/out a specific configuration for application/x-www-form-urlencoded
106106 withScheme (scheme )
107107 .withChunked (chunked )
108- .withBodyParameterCount (42 * 1024 ) // 131,072, 131,072
108+ .withBodyParameterCount (42 * 1024 )
109109 .withBodyParameterSize (128 )
110- // Disable the limit
110+ // Remove the limit for form data, and fall back to the global
111111 .withConfiguration (config -> config .withMaxRequestBodySize (Map .of ("*" , 128 * 1024 )))
112112 .expectResponse ("""
113113 HTTP/1.1 413 \r
0 commit comments