Skip to content

Commit

Permalink
HDDS-11180. Simplify HttpServer2#inferMimeType return statement (#6963)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-sh authored Jul 18, 2024
1 parent dbb3047 commit 50a07a7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,7 @@ private String inferMimeType(ServletRequest request) {
String path = ((HttpServletRequest) request).getRequestURI();
ServletContextHandler.Context sContext =
(ServletContextHandler.Context) config.getServletContext();
String mime = sContext.getMimeType(path);
return (mime == null) ? null : mime;
return sContext.getMimeType(path);
}

private void initHttpHeaderMap() {
Expand Down

0 comments on commit 50a07a7

Please sign in to comment.