1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-14 10:35:07 +00:00

Include content-range header in video proxy

This commit is contained in:
Cadence Ember
2020-04-18 21:50:23 +12:00
parent 8398049f02
commit 456bafa199

View File

@@ -44,7 +44,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null)
// console.log(response.status, response.headers) // console.log(response.status, response.headers)
if (statusCodeIsAcceptable(response.status)) { if (statusCodeIsAcceptable(response.status)) {
const headersToReturn = {} const headersToReturn = {}
for (const key of ["content-type", "date", "last-modified", "expires", "cache-control", "accept-ranges", "origin", "etag", "content-length", "transfer-encoding"]) { for (const key of ["content-type", "date", "last-modified", "expires", "cache-control", "accept-ranges", "content-range", "origin", "etag", "content-length", "transfer-encoding"]) {
headersToReturn[key] = response.headers.get(key) headersToReturn[key] = response.headers.get(key)
} }
return { return {