From 57e11a20f12c69927e5739ecf541ed340934ff90 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Dec 2022 16:06:58 +0100 Subject: Forward 206 status code for object storage proxy --- server/lib/object-storage/shared/object-storage-helpers.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/lib/object-storage') diff --git a/server/lib/object-storage/shared/object-storage-helpers.ts b/server/lib/object-storage/shared/object-storage-helpers.ts index 3046d76bc..8dff08ab4 100644 --- a/server/lib/object-storage/shared/object-storage-helpers.ts +++ b/server/lib/object-storage/shared/object-storage-helpers.ts @@ -187,7 +187,10 @@ async function createObjectReadStream (options: { const response = await getClient().send(command) - return response.Body as Readable + return { + response, + stream: response.Body as Readable + } } // --------------------------------------------------------------------------- -- cgit v1.2.3