mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Remove aws bug workaround
This has been fixed in https://github.com/aws/aws-sdk-js-v3/pull/2835
This commit is contained in:
parent
7fb2c60bbe
commit
532e6a4172
2 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue