aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java
index f69e2162ee8..800f84477d9 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java
@@ -38,6 +38,7 @@ public final class MediaTypes {
public static final String JAVASCRIPT = "application/javascript";
public static final String HTML = "text/html";
public static final String DEFAULT = "application/octet-stream";
+ public static final String SVG = "image/svg+xml";
private static final Map<String, String> MAP = new ImmutableMap.Builder<String, String>()
.put("js", JAVASCRIPT)
@@ -59,7 +60,7 @@ public final class MediaTypes {
.put("jpeg", "image/jpeg")
.put("tiff", "image/tiff")
.put("png", "image/png")
- .put("svg", "image/svg+xml")
+ .put("svg", SVG)
.put("ico", "image/x-icon")
.put("txt", TXT)
.put("csv", "text/csv")