File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
airbyte_cdk/sources/declarative/decoders Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88
99import 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 )
You can’t perform that action at this time.
0 commit comments