We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570a128 commit 1f5b93dCopy full SHA for 1f5b93d
packages/smithy-http/src/smithy_http/aio/auth/apikey.py
@@ -108,8 +108,8 @@ async def sign(
108
)
109
case ApiKeyLocation.HEADER:
110
value = identity.api_key
111
- if signing_properties.get("scheme"):
112
- value = f"{signing_properties['scheme']} {value}"
+ if (scheme := signing_properties.get("scheme", None)) is not None:
+ value = f"{scheme} {value}"
113
http_request.fields.set_field(
114
Field(name=signing_properties["name"], values=[value])
115
0 commit comments