Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
index 3d2d13f94e..4882154ac4 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
@@ -549,8 +549,9 @@ public abstract class AbstractHttpConnection extends AbstractConnection
{
if (error)
{
- _endp.shutdownOutput();
_generator.setPersistent(false);
+ _generator.flushBuffer();
+ _endp.shutdownOutput();
if (!_generator.isComplete())
_response.complete();
}

Back to the top