Revert "Issue #10337 - fixes for SizeLimitHandler"

This reverts commit 2126ac262c.
This commit is contained in:
Lachlan Roberts 2023-08-24 15:05:43 +10:00
parent 2126ac262c
commit 4bd3a8e431
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;
callback.failed(new HttpException.RuntimeException(413, s));
Response.writeError(request, response, callback, 413, s);
return true;
}
}