summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorThomas Becker2011-09-22 05:42:05 (EDT)
committer Simone Bordet2011-09-22 06:08:43 (EDT)
commitaf7252b7197d895b720d1885a69c06d7e6da020c (patch)
treec1f3e8f84937ac279e89f80f9dbdfaec444cbd57
parente2bdcbe38c1e550f722ea2c0586edc7ba688dec7 (diff)
downloadorg.eclipse.jetty.project-af7252b7197d895b720d1885a69c06d7e6da020c.zip
org.eclipse.jetty.project-af7252b7197d895b720d1885a69c06d7e6da020c.tar.gz
org.eclipse.jetty.project-af7252b7197d895b720d1885a69c06d7e6da020c.tar.bz2
353839: Ajp13Generator fix for file upload
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
-rw-r--r--jetty-ajp/src/main/java/org/eclipse/jetty/ajp/Ajp13Generator.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/jetty-ajp/src/main/java/org/eclipse/jetty/ajp/Ajp13Generator.java b/jetty-ajp/src/main/java/org/eclipse/jetty/ajp/Ajp13Generator.java
index 1540087..dd05df0 100644
--- a/jetty-ajp/src/main/java/org/eclipse/jetty/ajp/Ajp13Generator.java
+++ b/jetty-ajp/src/main/java/org/eclipse/jetty/ajp/Ajp13Generator.java
@@ -793,9 +793,8 @@ public class Ajp13Generator extends AbstractGenerator
/* ------------------------------------------------------------ */
public void getBodyChunk() throws IOException
{
- _needMore = true;
- _expectMore = true;
- flushBuffer();
+ ByteArrayBuffer bf = new ByteArrayBuffer(AJP13_MORE_CONTENT);
+ _endp.flush(bf);
}
/* ------------------------------------------------------------ */