1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2025-01-15 12:36:44 +01:00

Fix issue when streaming through Cloudflare

This commit is contained in:
Alan Grainger 2024-11-10 21:46:57 +01:00
parent ec11bda449
commit 742366035f

View file

@ -24,7 +24,7 @@ class Render {
const startByte = parseInt(start, 10) || 0
const endByte = startByte + 2499999
headers.range = `bytes=${startByte}-${endByte}`
headerList.push('accept-ranges', 'cache-control', 'content-range')
headerList.push('accept-ranges', 'content-range')
res.status(206) // Partial Content
}
const url = immich.buildUrl(immich.apiUrl() + '/assets/' + encodeURIComponent(asset.id) + subpath, {