]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/object-storage/shared/client.ts
Use different p2p policy for embeds and webapp
[github/Chocobozzz/PeerTube.git] / server / lib / object-storage / shared / client.ts
index 85682c4926e397c877764e52e29b79c98dadf9b0..c9a6145933674e22a5dba5d25b5ce948d1b9c2fe 100644 (file)
@@ -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