Skip to content

Commit

Permalink
Add 'Accept-Ranges' header to the asset responses (needed for video s…
Browse files Browse the repository at this point in the history
…crubbing).
  • Loading branch information
ivopetkov committed Jan 11, 2023
1 parent 5d93374 commit 4f3134c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ public function getResponse(\BearFramework\App\Request $request): ?\BearFramewor
$response->headers->set($response->headers->make('Content-Type', $mimeType));
}
$response->headers->set($response->headers->make('Content-Length', (string) filesize($filename)));
$response->headers->set($response->headers->make('Accept-Ranges', 'bytes'));
return $response;
}
}
Expand Down

0 comments on commit 4f3134c

Please sign in to comment.