MDL-65409 files: Allow location header

Allow incorrect capitals in location header response.
This commit is contained in:
Damyon Wiese
2019-07-12 08:45:05 +08:00
committed by Mihail Geshoski
parent 5701d69f99
commit 6cbef68ec2
@@ -124,7 +124,7 @@ class converter implements \core_files\converter_interface {
$uploadurl;
// Google returns a location header with the location for the upload.
foreach ($headers as $header) {
if (strpos($header, 'Location:') === 0) {
if (stripos($header, 'Location:') === 0) {
$uploadurl = trim(substr($header, strpos($header, ':') + 1));
}
}