Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-05-28 08:46:16 -0400
committerGreg Wilkins2013-05-28 08:46:16 -0400
commit6f0195e0de86efb8ec93c9ec39b409f3c83df2c2 (patch)
tree27ef9ae689599700fd307dbb1ad6832233cb616d /jetty-servlets/src
parent2fa50247b79e4d3b9a187bf3096f31f373e3c26d (diff)
downloadorg.eclipse.jetty.project-6f0195e0de86efb8ec93c9ec39b409f3c83df2c2.tar.gz
org.eclipse.jetty.project-6f0195e0de86efb8ec93c9ec39b409f3c83df2c2.tar.xz
org.eclipse.jetty.project-6f0195e0de86efb8ec93c9ec39b409f3c83df2c2.zip
398467 Servlet 3.1 Non Blocking IO
Fixed handling of empty writes fixed double close sendContent
Diffstat (limited to 'jetty-servlets/src')
-rw-r--r--jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java
index 82174905d3..e5ae762f19 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/AbstractCompressedStream.java
@@ -179,7 +179,7 @@ public abstract class AbstractCompressedStream extends ServletOutputStream
if (_out == null || _bOut != null)
{
long length=_wrapper.getContentLength();
- if (length >= 0 && length < _wrapper.getMinCompressSize())
+ if (length<0 && _bOut==null || length >= 0 && length < _wrapper.getMinCompressSize())
doNotCompress(false);
else
doCompress();

Back to the top