Better header check for OAuth2 helper (#27897)
This commit is contained in:
committed by
Andrew Sayre
parent
914ceea72d
commit
6391a68fd5
@@ -392,7 +392,7 @@ async def async_oauth2_request(
|
||||
url,
|
||||
**kwargs,
|
||||
headers={
|
||||
**kwargs.get("headers", {}),
|
||||
**(kwargs.get("headers") or {}),
|
||||
"authorization": f"Bearer {token['access_token']}",
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user