aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/object-storage
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/object-storage')
-rw-r--r--server/lib/object-storage/shared/client.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/server/lib/object-storage/shared/client.ts b/server/lib/object-storage/shared/client.ts
index 85682c492..c9a614593 100644
--- a/server/lib/object-storage/shared/client.ts
+++ b/server/lib/object-storage/shared/client.ts
@@ -29,20 +29,6 @@ function getClient () {
29 : undefined 29 : undefined
30 }) 30 })
31 31
32 // FIXME: https://github.com/aws/aws-sdk-js-v3/issues/2445 workaround
33 s3Client.middlewareStack.add(
34 (next, _context) => (args: any) => {
35 if (typeof args.request?.body === 'string' && args.request.body.includes('CompletedMultipartUpload')) {
36 args.request.body = args.request.body.replace(/CompletedMultipartUpload/g, 'CompleteMultipartUpload')
37 }
38 return next(args)
39 },
40 {
41 step: 'build',
42 priority: 'high'
43 }
44 )
45
46 logger.info('Initialized S3 client %s with region %s.', getEndpoint(), OBJECT_STORAGE.REGION, lTags()) 32 logger.info('Initialized S3 client %s with region %s.', getEndpoint(), OBJECT_STORAGE.REGION, lTags())
47 33
48 return s3Client 34 return s3Client