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:
parent
ec11bda449
commit
742366035f
1 changed files with 1 additions and 1 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue