mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-04 14:50:02 +01:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user