From 532e6a4172154716d6c6ab2a7f715625d600987c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Oct 2021 16:30:55 +0200 Subject: Remove aws bug workaround This has been fixed in https://github.com/aws/aws-sdk-js-v3/pull/2835 --- server/lib/object-storage/shared/client.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'server/lib/object-storage/shared') 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 () { : undefined }) - // FIXME: https://github.com/aws/aws-sdk-js-v3/issues/2445 workaround - s3Client.middlewareStack.add( - (next, _context) => (args: any) => { - if (typeof args.request?.body === 'string' && args.request.body.includes('CompletedMultipartUpload')) { - args.request.body = args.request.body.replace(/CompletedMultipartUpload/g, 'CompleteMultipartUpload') - } - return next(args) - }, - { - step: 'build', - priority: 'high' - } - ) - logger.info('Initialized S3 client %s with region %s.', getEndpoint(), OBJECT_STORAGE.REGION, lTags()) return s3Client -- cgit v1.2.3