Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Http.php b/core/Http.php
index 4377ebac7a..793371aa9f 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -608,6 +608,11 @@ class Http
if ($rangeBytes) {
curl_setopt($ch, CURLOPT_RANGE, $rangeBytes);
+ } else {
+ // see https://github.com/matomo-org/matomo/pull/17009 for more info
+ // NOTE: we only do this when CURLOPT_RANGE is not being used, because when using both the
+ // response is empty.
+ $curl_options[CURLOPT_ENCODING] = "";
}
// Case core:archive command is triggering archiving on https:// and the certificate is not valid