1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-09-28 23:07:30 +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
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -44,7 +44,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null)
// console.log(response.status, response.headers)
if (statusCodeIsAcceptable(response.status)) {
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)
}
return {