Add optional limit on request size

Signed-off-by: Luminita Voicu <lumivo@amazon.com>
This commit is contained in:
Luminita Voicu
2021-07-07 13:32:33 +03:00
parent 7f3a14f16f
commit eb8b8cb53d
4 changed files with 58 additions and 39 deletions

View File

@@ -765,7 +765,8 @@ mod tests {
second_server_request.request,
Request::try_from(
b"GET /machine-config HTTP/1.1\r\n\
Content-Type: application/json\r\n\r\n"
Content-Type: application/json\r\n\r\n",
None
)
.unwrap()
);
@@ -989,7 +990,8 @@ mod tests {
second_server_request.request,
Request::try_from(
b"GET /machine-config HTTP/1.1\r\n\
Content-Type: application/json\r\n\r\n"
Content-Type: application/json\r\n\r\n",
None
)
.unwrap()
);