Revert "Issue #10337 - fixes for SizeLimitHandler"
This reverts commit 2126ac262c
.
This commit is contained in:
parent
2126ac262c
commit
4bd3a8e431
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue