From 889f4f0a0f131c40312d9cec27abca2e8416f02b Mon Sep 17 00:00:00 2001 From: Steffen Raabe Date: Sat, 2 Jun 2018 16:41:43 +0200 Subject: [PATCH] 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. --- src/main/webapp/WEB-INF/web.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index a85da9075..b476414c5 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -89,5 +89,10 @@ PATH_TO_DATADIR --> + + + svg + image/svg+xml +