@@ -222,9 +222,11 @@ def qs(self) -> Querystring:
222222
223223 @override
224224 def _auth_headers (self , security : SecurityOptions ) -> dict [str , str ]:
225- return {
226- ** (self ._bearer_auth if security .get ("bearer_auth" , False ) else {}),
227- }
225+ headers : dict [str , str ] = {}
226+ if security .get ("bearer_auth" , False ):
227+ for key , value in self ._bearer_auth .items ():
228+ headers .setdefault (key , value )
229+ return headers
228230
229231 @property
230232 def _bearer_auth (self ) -> dict [str , str ]:
@@ -489,9 +491,11 @@ def qs(self) -> Querystring:
489491
490492 @override
491493 def _auth_headers (self , security : SecurityOptions ) -> dict [str , str ]:
492- return {
493- ** (self ._bearer_auth if security .get ("bearer_auth" , False ) else {}),
494- }
494+ headers : dict [str , str ] = {}
495+ if security .get ("bearer_auth" , False ):
496+ for key , value in self ._bearer_auth .items ():
497+ headers .setdefault (key , value )
498+ return headers
495499
496500 @property
497501 def _bearer_auth (self ) -> dict [str , str ]:
0 commit comments