Skip headers that can not be split
This commit is contained in:
parent
f219f5a7a6
commit
adc7135429
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ if($source) {
|
|||
$freeSpace = $storageStats['freeSpace'];
|
||||
|
||||
foreach($meta['wrapper_data'] as $header) {
|
||||
if (strpos($header, ':') === false){
|
||||
continue;
|
||||
}
|
||||
list($name, $value) = explode(':', $header);
|
||||
if ('content-length' === strtolower(trim($name))) {
|
||||
$length = (int) trim($value);
|
||||
|
|
Loading…
Reference in a new issue