This function has been deprecated, but is kept for backwards compatibility.
(params, **kwargs)
| 3152 | |
| 3153 | |
| 3154 | def 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 | |
| 3172 | def conditionally_calculate_md5(params, **kwargs): |
no test coverage detected