Return null from MockServletContext.getMimeType for unknown type
ServletContext.getMimeType() returns `null` for unknown mime types; not `application/octet-stream`. Issue: SPR-14908
This commit is contained in:
@@ -82,6 +82,7 @@ public class MockServletContextTests {
|
||||
public void getMimeType() {
|
||||
assertEquals("text/html", sc.getMimeType("test.html"));
|
||||
assertEquals("image/gif", sc.getMimeType("test.gif"));
|
||||
assertNull(sc.getMimeType("test.foobar"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user