|
@@ 76-78 (lines=3) @@
|
| 73 |
|
if (is_string($this->file)) { |
| 74 |
|
if ($this->rangeRequest) { |
| 75 |
|
// Request Range Not Satisfiable |
| 76 |
|
if (!isset($this->start) && !isset($this->end) || $this->start > $this->end) { |
| 77 |
|
return null; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return substr($this->file, $this->start, $this->end - $this->start + 1); |
| 81 |
|
} |
|
@@ 86-88 (lines=3) @@
|
| 83 |
|
} |
| 84 |
|
if ($this->rangeRequest) { |
| 85 |
|
// Request Range Not Satisfiable |
| 86 |
|
if (!isset($this->start) && !isset($this->end) || $this->start > $this->end) { |
| 87 |
|
return null; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
$handle = fopen('oc://' . $this->file->getPath(), 'r'); |
| 91 |
|
fseek($handle, $this->start); |