Merge branch '1.5.x'

pull/11595/head
Andy Wilkinson 8 years ago
commit 7a4b87be6b

@ -244,7 +244,6 @@ public class WebRequestTraceFilterTests {
}
@Test
@SuppressWarnings("unchecked")
public void filterAddsTimeTaken() throws Exception {
MockHttpServletRequest request = spy(new MockHttpServletRequest("GET", "/foo"));
MockHttpServletResponse response = new MockHttpServletResponse();

@ -339,7 +339,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
Compression compression = getCompression();
protocol.setCompression("on");
protocol.setCompressionMinSize(compression.getMinResponseSize());
protocol.setCompressableMimeType(
protocol.setCompressibleMimeType(
StringUtils.arrayToCommaDelimitedString(compression.getMimeTypes()));
if (getCompression().getExcludedUserAgents() != null) {
protocol.setNoCompressionUserAgents(

@ -36,7 +36,7 @@ public class CompressionTests {
private String[] getTomcatDefaultCompressableMimeTypes() {
Http11NioProtocol protocol = new Http11NioProtocol();
return protocol.getCompressableMimeTypes();
return protocol.getCompressibleMimeTypes();
}
}

Loading…
Cancel
Save