388079: AbstractHttpConnection. Flush the buffer before shutting output down on error condition

This commit is contained in:
Thomas Becker 2012-08-27 12:02:50 +02:00
parent 9173751438
commit 77c03ad45f
1 changed files with 2 additions and 1 deletions

View File

@ -549,8 +549,9 @@ public abstract class AbstractHttpConnection extends AbstractConnection
{ {
if (error) if (error)
{ {
_endp.shutdownOutput();
_generator.setPersistent(false); _generator.setPersistent(false);
_generator.flushBuffer();
_endp.shutdownOutput();
if (!_generator.isComplete()) if (!_generator.isComplete())
_response.complete(); _response.complete();
} }