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
1 changed files with 1 additions and 1 deletions

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 {