From 6f640ccb48b0e3ea1a3b0c3a85dd35ff33d5ce74 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Wed, 22 Mar 2023 06:56:00 +0100 Subject: fix(object-storage-proxy): set content-range --- server/controllers/object-storage-proxy.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server') diff --git a/server/controllers/object-storage-proxy.ts b/server/controllers/object-storage-proxy.ts index 6bff05f14..c530b57f8 100644 --- a/server/controllers/object-storage-proxy.ts +++ b/server/controllers/object-storage-proxy.ts @@ -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) } } -- cgit v1.2.3