We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0a48c8 commit 8a2045eCopy full SHA for 8a2045e
src/finch/_client.py
@@ -147,7 +147,11 @@ def qs(self) -> Querystring:
147
@property
148
@override
149
def auth_headers(self) -> dict[str, str]:
150
- return {**self._bearer_auth, **self._basic_auth}
+ if self._bearer_auth:
151
+ return self._bearer_auth
152
+ if self._basic_auth:
153
+ return self._basic_auth
154
+ return {}
155
156
157
def _bearer_auth(self) -> dict[str, str]:
@@ -451,7 +455,11 @@ def qs(self) -> Querystring:
451
455
452
456
453
457
454
458
459
460
461
462
463
464
465
0 commit comments