Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
This commit is contained in:
commit
8956245026
|
@ -128,7 +128,7 @@ public class FastFileServer
|
||||||
// Jetty DefaultServlet will cache formatted date strings, but we
|
// Jetty DefaultServlet will cache formatted date strings, but we
|
||||||
// will reformat for each request here
|
// will reformat for each request here
|
||||||
response.setDateHeader("Last-Modified", file.lastModified());
|
response.setDateHeader("Last-Modified", file.lastModified());
|
||||||
response.setDateHeader("Content-Length", file.length());
|
response.setContentLengthLong(file.length());
|
||||||
response.setContentType(mimeTypes.getMimeByExtension(file.getName()));
|
response.setContentType(mimeTypes.getMimeByExtension(file.getName()));
|
||||||
|
|
||||||
// send "small" files blocking directly from an input stream
|
// send "small" files blocking directly from an input stream
|
||||||
|
|
|
@ -262,6 +262,7 @@ public class HttpClientRedirectTest extends AbstractHttpClientServerTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void testRedirectWithWrongScheme() throws Exception
|
public void testRedirectWithWrongScheme() throws Exception
|
||||||
{
|
{
|
||||||
start(new AbstractHandler()
|
start(new AbstractHandler()
|
||||||
|
|
Loading…
Reference in New Issue