]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws in MediaTypes
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 27 Nov 2017 15:16:41 +0000 (16:16 +0100)
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>
Wed, 29 Nov 2017 19:24:11 +0000 (20:24 +0100)
sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java

index 08783ca593e92b717fbae29a310dced8edcc8b73..66af8ae10c1aee1a0610c88c9193be04b3f2f3fe 100644 (file)
@@ -42,7 +42,7 @@ public final class MediaTypes {
   private static final Map<String, String> MAP = new ImmutableMap.Builder<String, String>()
     .put("js", JAVASCRIPT)
     .put("json", JSON)
-    .put("zip", "application/zip")
+    .put("zip", ZIP)
     .put("tgz", "application/tgz")
     .put("ps", "application/postscript")
     .put("jnlp", "application/jnlp")
@@ -63,7 +63,7 @@ public final class MediaTypes {
     .put("ico", "image/x-icon")
     .put("txt", TXT)
     .put("csv", "text/csv")
-    .put("properties", "text/plain")
+    .put("properties", TXT)
     .put("rtf", "text/rtf")
     .put("html", HTML)
     .put("css", "text/css")