HTTP header are not case insensitive #14339
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
I am currently setting up a test-instance for my workshop and I try to be pedantic and not skip over potential bugs when doing so.
Currently I am really confused by the GeoIP downloader (I think I saw the same bug for the initial download on my real instance, but the updater works):
When I try to initially download the free geoip2 database, I just get the generic
General_DownloadFail_HttpRequestFail
error.Adding a
print_r($expectedFileSizeResult);
shows the source of the issue:matomo/core/Http.php
Lines 737 to 745 in 07adf0a
Cloudflare only returns lowercase HTTP headers, but Matomo only checks for
'Content-Length'
and therefore the download fails.Interestingly fixing this, the download still doesn't work as I just get an unhelpful
Failed sending HTTP request
here:matomo/core/Http.php
Lines 581 to 586 in 07adf0a
I'm also a bit clueless why I am the first one to come across this issue. Am I missing something?
The text was updated successfully, but these errors were encountered: