MCPcopy Create free account
hub / github.com/aws/aws-cli / conditionally_enable_crc32

Function conditionally_enable_crc32

awscli/botocore/utils.py:3154–3169  ·  view source on GitHub ↗

This function has been deprecated, but is kept for backwards compatibility.

(params, **kwargs)

Source from the content-addressed store, hash-verified

3152
3153
3154def conditionally_enable_crc32(params, **kwargs):
3155 """This function has been deprecated, but is kept for backwards compatibility."""
3156 checksum_context = params.get('context', {}).get('checksum', {})
3157 checksum_algorithm = checksum_context.get('request_algorithm')
3158 if (
3159 _is_s3express_request(params)
3160 and params['body'] is not None
3161 and checksum_algorithm in (None, "conditional-md5")
3162 ):
3163 params['context']['checksum'] = {
3164 'request_algorithm': {
3165 'algorithm': 'crc32',
3166 'in': 'header',
3167 'name': 'x-amz-checksum-crc32',
3168 }
3169 }
3170
3171
3172def conditionally_calculate_md5(params, **kwargs):

Callers 1

Calls 1

_is_s3express_requestFunction · 0.85

Tested by

no test coverage detected