mirror of
https://github.com/outline/outline.git
synced 2025-12-30 07:19:52 -06:00
fix: Cannot scrub videos in Chrome when using local storage
closes #7517
This commit is contained in:
@@ -90,6 +90,7 @@ router.get(
|
||||
contentType = attachment.contentType;
|
||||
}
|
||||
|
||||
ctx.set("Accept-Ranges", "bytes");
|
||||
ctx.set("Cache-Control", cacheHeader);
|
||||
ctx.set("Content-Type", contentType);
|
||||
ctx.attachment(fileName, {
|
||||
@@ -104,6 +105,7 @@ router.get(
|
||||
const range = getByteRange(ctx, stats.size);
|
||||
|
||||
if (range) {
|
||||
ctx.status = 206;
|
||||
ctx.set("Content-Length", String(range.end - range.start + 1));
|
||||
ctx.set(
|
||||
"Content-Range",
|
||||
|
||||
Reference in New Issue
Block a user