Issue #10337 - fixes for SizeLimitHandler

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2023-08-22 10:49:24 +10:00
parent e6942da18e
commit 2126ac262c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class SizeLimitHandler extends Handler.Wrapper
if (_requestLimit >= 0 && contentLength > _requestLimit)
{
String s = "Request body is too large: " + contentLength + ">" + _requestLimit;
Response.writeError(request, response, callback, 413, s);
callback.failed(new HttpException.RuntimeException(413, s));
return true;
}
}