Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-07-04 00:59:55 -0400
committerGreg Wilkins2013-07-04 00:59:55 -0400
commit37de67d3d78105769556a76a5e20a536069a4480 (patch)
tree9a0ca80080bfda6ad5033ef5e3ca097f348a4423 /jetty-servlets/src
parent8d455056ec26a487331763967d4fde8dd2d8327e (diff)
parent49f865c45a6cb809a6e15388c93322c1ffae3d4f (diff)
downloadorg.eclipse.jetty.project-37de67d3d78105769556a76a5e20a536069a4480.tar.gz
org.eclipse.jetty.project-37de67d3d78105769556a76a5e20a536069a4480.tar.xz
org.eclipse.jetty.project-37de67d3d78105769556a76a5e20a536069a4480.zip
Merge remote-tracking branch 'origin/jetty-7' into jetty-8
Diffstat (limited to 'jetty-servlets/src')
-rw-r--r--jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java
index e0ded0b262..f689a6af95 100644
--- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java
+++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/gzip/GzipTester.java
@@ -116,12 +116,15 @@ public class GzipTester
// Response headers should have either a Transfer-Encoding indicating chunked OR a Content-Length
String contentLength = response.getHeader("Content-Length");
String transferEncoding = response.getHeader("Transfer-Encoding");
+
+ /* TODO need to check for the 3rd option of EOF content. To do this properly you might need to look at both HTTP/1.1 and HTTP/1.0 requests
boolean chunked = (transferEncoding != null) && (transferEncoding.indexOf("chunk") >= 0);
if(!chunked) {
Assert.assertThat("Response.header[Content-Length]",contentLength,notNullValue());
} else {
Assert.assertThat("Response.header[Transfer-Encoding]",transferEncoding,notNullValue());
}
+ */
int qindex = compressionType.indexOf(";");
if (qindex < 0)

Back to the top