diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2018-01-15 18:08:50 +0100 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-01-25 15:16:50 +0100 |
commit | 26b7b078e22dd7aab61e24da4f41c2e7c82d75ad (patch) | |
tree | e4b1c73279add491047dfd3a7d93aedcca9f59c6 /sonar-ws | |
parent | 852e234a1955f3f69d45e9efa5edde5cd7a3198c (diff) | |
download | sonarqube-26b7b078e22dd7aab61e24da4f41c2e7c82d75ad.tar.gz sonarqube-26b7b078e22dd7aab61e24da4f41c2e7c82d75ad.zip |
SONAR-10266 Generate measure badge
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java | 3 |
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") |