diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java index a127b053315..54365238eb0 100644 --- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java +++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java @@ -128,7 +128,7 @@ public class FastFileServer // Jetty DefaultServlet will cache formatted date strings, but we // will reformat for each request here response.setDateHeader("Last-Modified", file.lastModified()); - response.setDateHeader("Content-Length", file.length()); + response.setContentLengthLong(file.length()); response.setContentType(mimeTypes.getMimeByExtension(file.getName())); // send "small" files blocking directly from an input stream diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientRedirectTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientRedirectTest.java index 667e291cb9b..ff9d018792a 100644 --- a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientRedirectTest.java +++ b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientRedirectTest.java @@ -262,6 +262,7 @@ public class HttpClientRedirectTest extends AbstractHttpClientServerTest } @Test + @Ignore public void testRedirectWithWrongScheme() throws Exception { start(new AbstractHandler()