diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2024-08-15 16:14:37 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-08-20 20:02:57 +0000 |
commit | e21e8474d4c2af05aca478fc0ab5163ff5668901 (patch) | |
tree | 53051bf991fa926d3c76887d4ca38eb1c0495264 /sonar-scanner-engine/src | |
parent | e4dd9c4f38f5872e4f2d0d6f4e9351d0c8bd5d11 (diff) | |
download | sonarqube-e21e8474d4c2af05aca478fc0ab5163ff5668901.tar.gz sonarqube-e21e8474d4c2af05aca478fc0ab5163ff5668901.zip |
SONAR-21857 fix ssf
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerWsClientProvider.java | 2 | ||||
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerWsClientProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerWsClientProvider.java index b4cbad4e365..49284974a1f 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerWsClientProvider.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerWsClientProvider.java @@ -40,7 +40,7 @@ public class ScannerWsClientProvider { public DefaultScannerWsClient provide(ScannerProperties scannerProps, EnvironmentInformation env, GlobalAnalysisMode globalMode, System2 system, AnalysisWarnings analysisWarnings) { String url = defaultIfBlank(scannerProps.property("sonar.host.url"), "http://localhost:9000"); - HttpConnector.Builder connectorBuilder = HttpConnector.newBuilder(); + HttpConnector.Builder connectorBuilder = HttpConnector.newBuilder().acceptGzip(true); String timeoutSec = defaultIfBlank(scannerProps.property(READ_TIMEOUT_SEC_PROPERTY), valueOf(DEFAULT_READ_TIMEOUT_SEC)); String token = defaultIfBlank(system.envVariable("SONAR_TOKEN"), null); diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java index febfe453317..65fee066163 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java @@ -62,7 +62,7 @@ public class PluginFilesTest { @Before public void setUp() throws Exception { - HttpConnector connector = HttpConnector.newBuilder().url(server.url("/").toString()).build(); + HttpConnector connector = HttpConnector.newBuilder().acceptGzip(true).url(server.url("/").toString()).build(); GlobalAnalysisMode analysisMode = new GlobalAnalysisMode(new ScannerProperties(Collections.emptyMap())); DefaultScannerWsClient wsClient = new DefaultScannerWsClient(WsClientFactories.getDefault().newClient(connector), false, analysisMode, analysisWarnings); |