botocore
botocore copied to clipboard
add support for compressed responses
currently when botocore makes an AWS call it doesn't set any Accept-Encoding
so it comes back as plain text. If we enable this by setting request.headers['Accept-Encoding'] = 'gzip'
before requests are made, AWS will return back gzip'd responses if the responses are large enough (large enough dynamodb call for example. The issue is that the code after the request has no concept of compressed responses, and convert_to_response_dict
tries to just look at the "content" property, which is empty for gzip'd responses.
The fix should be as simple as correctly processing gzip'd responses and adding the supported types to the headers.
Thanks for the feature request! Related: https://github.com/aws/aws-cli/issues/1131
Is there any update on this request?, looks like its been 5 years since the feature request is created.