Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-07-04 00:59:22 -0400
committerGreg Wilkins2013-07-04 00:59:22 -0400
commit49f865c45a6cb809a6e15388c93322c1ffae3d4f (patch)
treeaa7cdb4cfaa19daaceade58873f44c810f1030c5 /jetty-servlets/src
parent7ad4d80af2a616d5865b168c173a13afd52e3b69 (diff)
downloadorg.eclipse.jetty.project-49f865c45a6cb809a6e15388c93322c1ffae3d4f.tar.gz
org.eclipse.jetty.project-49f865c45a6cb809a6e15388c93322c1ffae3d4f.tar.xz
org.eclipse.jetty.project-49f865c45a6cb809a6e15388c93322c1ffae3d4f.zip
commented out incomplete test for EOF content
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 ad3ea63a5e..c69d33ff04 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
@@ -114,12 +114,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