Skip to content

Commit a638238

Browse files
🐛 fix: temporarily disable S3 client integrity check for Cloudflare R2 (#5479)
* 🐛 fix: S3 client integrity check for Cloudflare R2 related issues: cloudflare/cloudflare-docs#19236 aws/aws-sdk-js-v3#6810 * Update index.ts --------- Co-authored-by: Arvin Xu <[email protected]>
1 parent e3f65d7 commit a638238

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/modules/S3/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export class S3 {
4444
endpoint: fileEnv.S3_ENDPOINT,
4545
forcePathStyle: fileEnv.S3_ENABLE_PATH_STYLE,
4646
region: fileEnv.S3_REGION || DEFAULT_S3_REGION,
47+
// refs: https://github.com/lobehub/lobe-chat/pull/5479
48+
requestChecksumCalculation: 'WHEN_REQUIRED',
49+
responseChecksumValidation: 'WHEN_REQUIRED',
4750
});
4851
}
4952

0 commit comments

Comments
 (0)