mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
fix(object-storage-proxy): set content-range
This commit is contained in:
committed by
Chocobozzz
parent
951414fc62
commit
6f640ccb48
@@ -110,6 +110,7 @@ function handleObjectStorageFailure (res: express.Response, err: Error) {
|
||||
|
||||
function setS3Headers (res: express.Response, s3Response: GetObjectCommandOutput) {
|
||||
if (s3Response.$metadata.httpStatusCode === HttpStatusCode.PARTIAL_CONTENT_206) {
|
||||
res.setHeader('Content-Range', s3Response.ContentRange)
|
||||
res.status(HttpStatusCode.PARTIAL_CONTENT_206)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user