]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8248 JS files from plugins don't have JS Content-Type header
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Nov 2016 14:18:56 +0000 (15:18 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Nov 2016 14:18:56 +0000 (15:18 +0100)
sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java

index 629bc33ae689abd339dedc95b0b03adfdb288c8d..d7677c4ea2b6e1c406b3229b5ae7a9d9ba83d369 100644 (file)
@@ -36,9 +36,11 @@ public final class MediaTypes {
   public static final String TXT = "text/plain";
   public static final String PROTOBUF = "application/x-protobuf";
   public static final String ZIP = "application/zip";
+  public static final String JAVASCRIPT = "application/javascript";
   public static final String DEFAULT = "application/octet-stream";
 
   private static final Map<String, String> MAP = new ImmutableMap.Builder<String, String>()
+    .put("js", JAVASCRIPT)
     .put("json", JSON)
     .put("zip", "application/zip")
     .put("tgz", "application/tgz")