/**
* Disable swallowing of remaining input if configured
*/
- protected void disableSwallowInput() {
+ protected void checkSwallowInput() {
Context context = getContext();
if (context != null && !context.getSwallowAbortedUploads()) {
coyoteRequest.action(ActionCode.DISABLE_SWALLOW_INPUT, null);
} catch (InvalidContentTypeException e) {
partsParseException = new ServletException(e);
} catch (FileUploadBase.SizeException e) {
- disableSwallowInput();
+ checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
partsParseException = new IOException(e);
context.getLogger().debug(
sm.getString("coyoteRequest.postTooLarge"));
}
- disableSwallowInput();
+ checkSwallowInput();
return;
}
byte[] formData = null;
if (connector.getMaxPostSize() > 0 &&
(body.getLength() + len) > connector.getMaxPostSize()) {
// Too much data
- disableSwallowInput();
+ checkSwallowInput();
throw new IllegalArgumentException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
}