]> BookStack Code Mirror - bookstack/blobdiff - app/Http/RangeSupportedStream.php
Attachments: Fixed full range request handling
[bookstack] / app / Http / RangeSupportedStream.php
index 300f4488cf44453d4f18f5c27207da8b6f12ed1b..fce1e9acce30cbc187756c5ef9dd54b7e79f51dd 100644 (file)
@@ -92,7 +92,7 @@ class RangeSupportedStream
             if ($start < 0 || $start > $end) {
                 $this->responseStatus = 416;
                 $this->responseHeaders['Content-Range'] = sprintf('bytes */%s', $this->fileSize);
-            } elseif ($end - $start < $this->fileSize - 1) {
+            } else {
                 $this->responseLength = $end < $this->fileSize ? $end - $start + 1 : -1;
                 $this->responseOffset = $start;
                 $this->responseStatus = 206;