Browse Source

SONAR-19091 Fix SSF-383

(cherry picked from commit 9708d98955)
tags/9.9.1.69595
Jacek Poreda 1 year ago
parent
commit
350ecd17dd

+ 1
- 1
build.gradle View File

entry 'log4j-api' entry 'log4j-api'
entry 'log4j-to-slf4j' entry 'log4j-to-slf4j'
} }
dependencySet(group: 'org.apache.tomcat.embed', version: '9.0.70') {
dependencySet(group: 'org.apache.tomcat.embed', version: '9.0.74') {
entry 'tomcat-embed-core' entry 'tomcat-embed-core'
entry('tomcat-embed-jasper') { entry('tomcat-embed-jasper') {
exclude 'org.eclipse.jdt.core.compiler:ecj' exclude 'org.eclipse.jdt.core.compiler:ecj'

+ 1
- 1
server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java View File

private static void configureCompression(Connector connector) { private static void configureCompression(Connector connector) {
connector.setProperty("compression", "on"); connector.setProperty("compression", "on");
connector.setProperty("compressionMinSize", "1024"); connector.setProperty("compressionMinSize", "1024");
connector.setProperty("compressableMimeType", "text/html,text/xml,text/plain,text/css,application/json,application/javascript");
connector.setProperty("compressibleMimeType", "text/html,text/xml,text/plain,text/css,application/json,application/javascript,text/javascript");
} }


private static void setConnectorAttribute(Connector c, String key, @Nullable Object value) { private static void setConnectorAttribute(Connector c, String key, @Nullable Object value) {

+ 1
- 1
sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java View File

public static final String CSV = "text/csv"; public static final String CSV = "text/csv";
public static final String DEFAULT = "application/octet-stream"; public static final String DEFAULT = "application/octet-stream";
public static final String HTML = "text/html"; public static final String HTML = "text/html";
public static final String JAVASCRIPT = "application/javascript";
public static final String JAVASCRIPT = "text/javascript";
public static final String JSON = "application/json"; public static final String JSON = "application/json";
public static final String PROTOBUF = "application/x-protobuf"; public static final String PROTOBUF = "application/x-protobuf";
public static final String SVG = "image/svg+xml"; public static final String SVG = "image/svg+xml";

Loading…
Cancel
Save