Skip to content

Commit bcb85f2

Browse files
authored
fix(backend/object-storage): disable data integrity protections (#895)
Cloudflare R2 does not support 'x-amz-checksum-*'
1 parent 86209cf commit bcb85f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/backend/src/core/S3Service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export class S3Service {
4646
tls: meta.objectStorageUseSSL,
4747
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
4848
requestHandler: new NodeHttpHandler(handlerOption),
49+
requestChecksumCalculation: 'WHEN_REQUIRED',
50+
responseChecksumValidation: 'WHEN_REQUIRED',
4951
});
5052
}
5153

0 commit comments

Comments
 (0)