mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-06 05:49:50 +00:00
Issue #6544 - Remove braces
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
3868360555
commit
d5da842ea8
@ -163,15 +163,12 @@ public class GzipHandlerTest
|
||||
String defaultContentType = "application/octet-stream";
|
||||
if (req.getParameter("type") != null)
|
||||
defaultContentType = req.getParameter("type");
|
||||
|
||||
ServletContextHandler servletContextHandler = ServletContextHandler.getServletContextHandler(getServletContext());
|
||||
if (servletContextHandler == null)
|
||||
return defaultContentType;
|
||||
String contentType = servletContextHandler.getMimeTypes().getMimeByExtension(filename);
|
||||
if (contentType != null)
|
||||
{
|
||||
return contentType;
|
||||
}
|
||||
return defaultContentType;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user