Skip to content

Commit

Permalink
chore: update comment (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Oct 17, 2023
1 parent 45b1c71 commit fd929d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anthropic_bedrock/_utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def get_required_header(headers: HeadersLike, header: str) -> str:
if k.lower() == lower_header and isinstance(v, str):
return v

""" to deal with the case where the header looks like Finch-Event-Id """
""" to deal with the case where the header looks like Stainless-Event-Id """
intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize())

for normalized_header in [header, lower_header, header.upper(), intercaps_header]:
Expand Down

0 comments on commit fd929d4

Please sign in to comment.