File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,19 @@ async def _dispatch_notification(
5555 headers = {}
5656 if push_info .token :
5757 headers ['X-A2A-Notification-Token' ] = push_info .token
58-
58+
5959 # Add authentication header if configured
6060 if push_info .authentication and push_info .authentication .schemes :
6161 for scheme in push_info .authentication .schemes :
62- if scheme .lower () == 'bearer' and push_info .authentication .credentials :
63- headers ['Authorization' ] = f'Bearer { push_info .authentication .credentials } '
62+ if (
63+ scheme .lower () == 'bearer'
64+ and push_info .authentication .credentials
65+ ):
66+ headers ['Authorization' ] = (
67+ f'Bearer { push_info .authentication .credentials } '
68+ )
6469 break
65-
70+
6671 response = await self ._client .post (
6772 url ,
6873 json = task .model_dump (mode = 'json' , exclude_none = True ),
You can’t perform that action at this time.
0 commit comments