From d35f1b2658ce51710856ed3d555ff652405125da Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 7 Dec 2016 14:33:02 +0100 Subject: [PATCH] SONAR-6537 Add missing content type for javascript --- sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 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 629bc33ae68..e3aa88d84bf 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java @@ -21,10 +21,9 @@ package org.sonarqube.ws; import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; -import org.apache.commons.io.FilenameUtils; - import java.util.Locale; import java.util.Map; +import org.apache.commons.io.FilenameUtils; /** * @since 5.3 @@ -36,9 +35,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 MAP = new ImmutableMap.Builder() + .put("js", JAVASCRIPT) .put("json", JSON) .put("zip", "application/zip") .put("tgz", "application/tgz") -- 2.39.5