diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-19 16:06:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-19 16:08:00 +0100 |
commit | 57e11a20f12c69927e5739ecf541ed340934ff90 (patch) | |
tree | 33cefbf0286f0a8d7c4d59f246f364fbd0b52ebd /server/lib/object-storage/shared/object-storage-helpers.ts | |
parent | 28a398d6d7c178a54aeb5ff45c02daf64fec3e4e (diff) | |
download | PeerTube-57e11a20f12c69927e5739ecf541ed340934ff90.tar.gz PeerTube-57e11a20f12c69927e5739ecf541ed340934ff90.tar.zst PeerTube-57e11a20f12c69927e5739ecf541ed340934ff90.zip |
Forward 206 status code for object storage proxy
Diffstat (limited to 'server/lib/object-storage/shared/object-storage-helpers.ts')
-rw-r--r-- | server/lib/object-storage/shared/object-storage-helpers.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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: { | |||
187 | 187 | ||
188 | const response = await getClient().send(command) | 188 | const response = await getClient().send(command) |
189 | 189 | ||
190 | return response.Body as Readable | 190 | return { |
191 | response, | ||
192 | stream: response.Body as Readable | ||
193 | } | ||
191 | } | 194 | } |
192 | 195 | ||
193 | // --------------------------------------------------------------------------- | 196 | // --------------------------------------------------------------------------- |