fix(backend/object-storage): disable data integrity protections (MisskeyIO#895)
Cloudflare R2 does not support 'x-amz-checksum-*'
This commit is contained in:
parent
86209cf4b3
commit
bcb85f2237
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ export class S3Service {
|
||||||
tls: meta.objectStorageUseSSL,
|
tls: meta.objectStorageUseSSL,
|
||||||
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
|
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
|
||||||
requestHandler: new NodeHttpHandler(handlerOption),
|
requestHandler: new NodeHttpHandler(handlerOption),
|
||||||
|
requestChecksumCalculation: 'WHEN_REQUIRED',
|
||||||
|
responseChecksumValidation: 'WHEN_REQUIRED',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue