Skip to content

Commit 8d36c8a

Browse files
committed
Revert "Exclude x-amz-checksum-algorithm header from new get_checksum_header_algorithm function"
This reverts commit 175039e.
1 parent 82d2035 commit 8d36c8a

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

.changes/next-release/bugfix-useragent-16991.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

botocore/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3306,8 +3306,6 @@ def get_checksum_header_algorithms(params):
33063306
Returns the a list of algorithm name if a headers starting with "x-amz-checksum-"
33073307
are provided in a request, otherwise returns an empty list.
33083308
3309-
Returned lists exclude the x-amz-checksum-algorithm header itself.
3310-
33113309
This function is considered private and subject to abrupt breaking changes or
33123310
removal without prior announcement. Please do not use it directly.
33133311
"""
@@ -3318,7 +3316,7 @@ def get_checksum_header_algorithms(params):
33183316
# extract and return the algorithm name.
33193317
for header in headers:
33203318
match = CHECKSUM_HEADER_PATTERN.match(header)
3321-
if match and match.group(1).lower() != 'algorithm':
3319+
if match:
33223320
checksum_headers.append(match.group(1))
33233321
return checksum_headers
33243322

0 commit comments

Comments
 (0)