botocore icon indicating copy to clipboard operation
botocore copied to clipboard

add support for compressed responses

Open thehesiod opened this issue 7 years ago • 2 comments

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.

thehesiod avatar Aug 02 '17 00:08 thehesiod

Thanks for the feature request! Related: https://github.com/aws/aws-cli/issues/1131

joguSD avatar Aug 03 '17 16:08 joguSD

Is there any update on this request?, looks like its been 5 years since the feature request is created.

AravindGopala avatar May 08 '22 15:05 AravindGopala