Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-07-04 01:01:11 -0400
committerGreg Wilkins2013-07-04 01:01:11 -0400
commit89ce13c19146c5e652be277f45144791e5e36886 (patch)
tree8e4716fbe02df3a0ffc2c208574fe38805c0708b /jetty-servlets/src
parentc33db24d948b69fbe4b96cc9b52d80ca1580e3f7 (diff)
parent37de67d3d78105769556a76a5e20a536069a4480 (diff)
downloadorg.eclipse.jetty.project-89ce13c19146c5e652be277f45144791e5e36886.tar.gz
org.eclipse.jetty.project-89ce13c19146c5e652be277f45144791e5e36886.tar.xz
org.eclipse.jetty.project-89ce13c19146c5e652be277f45144791e5e36886.zip
Merge remote-tracking branch 'origin/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 343bbb26d6..fe1ab1a4fa 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
@@ -112,12 +112,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