MDL-65409 files: Allow location header
Allow incorrect capitals in location header response.
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user