Skip to content

Commit 529644e

Browse files
committed
fix(python-client): preserve empty token authorization header
1 parent e2c588e commit 529644e

File tree

1 file changed

+1
-1
lines changed
  • clients/python/src/objectstore_client

1 file changed

+1
-1
lines changed

clients/python/src/objectstore_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def _make_headers(self) -> dict[str, str]:
244244
headers.update(
245245
dict(sentry_sdk.get_current_scope().iter_trace_propagation_headers())
246246
)
247-
if token := self.mint_token():
247+
if (token := self.mint_token()) is not None:
248248
headers["Authorization"] = f"Bearer {token}"
249249
return headers
250250

0 commit comments

Comments
 (0)