Skip to content

Commit 96f41da

Browse files
author
Oleksandr Bazarnov
committed
nit
1 parent 3750f6d commit 96f41da

File tree

1 file changed

+4
-4
lines changed
  • airbyte_cdk/sources/declarative/decoders

1 file changed

+4
-4
lines changed

airbyte_cdk/sources/declarative/decoders/decoder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import requests
1010

11-
COMPRESSION_RESPONSE_TYPES = [
11+
COMPRESSSED_RESPONSE_TYPES = [
1212
"gzip",
1313
"x-gzip",
1414
"gzip, deflate",
@@ -44,9 +44,9 @@ def decode(
4444

4545
def is_compressed_response(self, response: requests.Response) -> bool:
4646
"""
47-
Check if the response is compressed based on the Content-Encoding header.
47+
Check if the response is compressed based on the `Content-Encoding` or `Content-Type` header.
4848
"""
4949
return (
50-
response.headers.get("Content-Encoding") in COMPRESSION_RESPONSE_TYPES
51-
or response.headers.get("Content-Type") in COMPRESSION_RESPONSE_TYPES
50+
response.headers.get("Content-Encoding") in COMPRESSSED_RESPONSE_TYPES
51+
or response.headers.get("Content-Type") in COMPRESSSED_RESPONSE_TYPES
5252
)

0 commit comments

Comments
 (0)