Better header check for OAuth2 helper (#27897)
This commit is contained in:
parent
914ceea72d
commit
6391a68fd5
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ async def async_oauth2_request(
|
||||||
url,
|
url,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
headers={
|
headers={
|
||||||
**kwargs.get("headers", {}),
|
**(kwargs.get("headers") or {}),
|
||||||
"authorization": f"Bearer {token['access_token']}",
|
"authorization": f"Bearer {token['access_token']}",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue