Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.

This commit is contained in:
Simone Bordet 2016-06-01 10:48:57 +02:00
commit 8956245026
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -262,6 +262,7 @@ public class HttpClientRedirectTest extends AbstractHttpClientServerTest
}
@Test
@Ignore
public void testRedirectWithWrongScheme() throws Exception
{
start(new AbstractHandler()