Turn returned HTTP headers lowercase before parsing

NGINX for some reason returns "content-length" instead of
"Content-Length".
This commit is contained in:
2025-06-15 01:36:12 +01:00
parent 7a8dede10b
commit e64c30e569

View File

@ -52,7 +52,8 @@ class Mp3FileRemote
],
]);
$result = get_headers($this->fileName, true, $context);
return $result['Content-Length'];
$result = array_change_key_case($result, CASE_LOWER);
return $result['content-length'];
}
/**