Skip to content

Commit

Permalink
Adding default init so the mime types are set for the static content
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk@1618792 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Aug 19, 2014
1 parent d51a3ea commit 67d1eff
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1496,6 +1496,7 @@ private void createStaticContext( final Tomcat container, Context context, Host
if ( staticContextDocbase != null )
{
Context staticContext = container.addContext( staticContextPath, staticContextDocbase );
Tomcat.initWebappDefaults(staticContext);
staticContext.setPrivileged( true );
Wrapper servlet = context.createWrapper();
servlet.setServletClass( DefaultServlet.class.getName() );
Expand Down

0 comments on commit 67d1eff

Please sign in to comment.