We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73e2fa1 commit bd3958bCopy full SHA for bd3958b
lib/Sapi.php
@@ -99,7 +99,7 @@ public static function sendResponse(ResponseInterface $response)
99
// If this is a partial response, flush the beginning bytes until the first position that is a multiple of the page size.
100
$contentRange = $response->getHeader('Content-Range');
101
// Matching "Content-Range: bytes 1234-5678/7890"
102
- if (null !== $contentRange && preg_match('/^bytes\s([0-9]*)-([0-9]*)\//i', $contentRange, $matches) && '' !== $matches[1]) {
+ if (null !== $contentRange && preg_match('/^bytes\s([0-9]+)-([0-9]+)\//i', $contentRange, $matches)) {
103
// 4kB should be the default page size on most architectures
104
$pageSize = 4096;
105
$offset = (int) $matches[1];
0 commit comments