From 4ad6fdad578acb63e5edfe27ed21d59dad7b3542 Mon Sep 17 00:00:00 2001 From: binLep <45154147+binLep@users.noreply.github.com> Date: Tue, 22 Jul 2025 11:08:32 +0800 Subject: [PATCH] update: remove content-encoding header when calculate Sign To support the compression algorithm on HTTP, it is need to set the response encoding format when uploading --- S3/S3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/S3/S3.py b/S3/S3.py index 26c516fd..4277fd9e 100644 --- a/S3/S3.py +++ b/S3/S3.py @@ -921,6 +921,7 @@ def _sanitize_headers(self, headers): # from http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html 'date', 'content-length', + 'content-encoding', 'last-modified', 'content-md5', 'x-amz-version-id',