Issue #10337 - fixes for SizeLimitHandler
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
e6942da18e
commit
2126ac262c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue