diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-11-17 15:13:19 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-11-17 15:13:19 +0100 |
commit | 9f43cd2f7c25c0bbac6a96c36f2629a79bb5bd52 (patch) | |
tree | 0f4a741c52e50abbd498b994250ee9935bfdb98b /sonar-ws/src | |
parent | 75f33409de08a80bd46749b2fa0958bab6bd3bbe (diff) | |
download | sonarqube-9f43cd2f7c25c0bbac6a96c36f2629a79bb5bd52.tar.gz sonarqube-9f43cd2f7c25c0bbac6a96c36f2629a79bb5bd52.zip |
SONAR-8248 JS files from plugins don't have JS Content-Type header
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java | 2 |
1 files changed, 2 insertions, 0 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..d7677c4ea2b 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java @@ -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") |