Added mime-type mapping for SVG files

I added a mime-type mapping for SVG files because when serving gitbucket from Wildfly, SVG files like the logo "gitbucket.svg" are being sent with "Content-Type: text/html", causing the image not to be displayed in the browser.
Adding this mapping to web.xml fixes that behavior for deployments on Wildfly and possibly other application servers.
This commit is contained in:
Steffen Raabe
2018-06-02 16:41:43 +02:00
committed by GitHub
parent 65ac7b7b13
commit 889f4f0a0f

View File

@@ -89,5 +89,10 @@
<param-value>PATH_TO_DATADIR</param-value>
</context-param>
-->
<mime-mapping>
<extension>svg</extension>
<mime-type>image/svg+xml</mime-type>
</mime-mapping>
</web-app>