mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-23 00:27:30 +00:00
Include content-range header in video proxy
This commit is contained in:
parent
8398049f02
commit
456bafa199
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user