Skip to content

Commit 90a5199

Browse files
authored
Update aws_s3--0.0.1.sql
1 parent 5384dd1 commit 90a5199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_s3--0.0.1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ AS $$
9292
response = obj.get()
9393
content_encoding = response.get('ContentEncoding')
9494
body = response['Body']
95-
user_content_encoding = response.get('x-amz-meta-content-encoding') or response.get("ResponseMetadata", {}).get("x-amz-meta-content-encoding")
95+
user_content_encoding = response.get('x-amz-meta-content-encoding') or response.get("Metadata", {}).get("content-encoding")
9696

9797
with tempfile.NamedTemporaryFile() as fd:
9898
if (content_encoding and content_encoding.lower() == 'gzip') or (user_content_encoding and user_content_encoding.lower() == 'gzip'):

0 commit comments

Comments
 (0)