Returns the list of header names from the request which start with "x-amz-checksum-", otherwise returns an empty list.
(params)
| 3118 | |
| 3119 | |
| 3120 | def get_checksum_algorithm_headers(params): |
| 3121 | """ |
| 3122 | Returns the list of header names from the request which start with |
| 3123 | "x-amz-checksum-", otherwise returns an empty list. |
| 3124 | """ |
| 3125 | headers = params['headers'] |
| 3126 | checksum_headers = [] |
| 3127 | |
| 3128 | # If a header matching the x-amz-checksum-* pattern is present, we |
| 3129 | # extract and return the algorithm name. |
| 3130 | for header in headers: |
| 3131 | match = CHECKSUM_HEADER_PATTERN.match(header) |
| 3132 | if match: |
| 3133 | checksum_headers.append(header) |
| 3134 | return checksum_headers |
| 3135 | |
| 3136 | |
| 3137 | def has_checksum_header(params): |
no test coverage detected