From 1e5d2d2f0737f991cd603e9a8cac5c2183a7db78 Mon Sep 17 00:00:00 2001 From: vedantsahai18 Date: Wed, 6 Nov 2024 19:01:43 -0500 Subject: [PATCH] feat(agents-api): union the headers from arguments and setup for api call execution --- agents-api/agents_api/activities/excecute_api_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/activities/excecute_api_call.py b/agents-api/agents_api/activities/excecute_api_call.py index 1d01c45ea..6c60a5cc1 100644 --- a/agents-api/agents_api/activities/excecute_api_call.py +++ b/agents-api/agents_api/activities/excecute_api_call.py @@ -34,7 +34,7 @@ async def execute_api_call( response = await client.request( method=api_call.method, url=arg_url or str(api_call.url), - headers=arg_headers or api_call.headers, + headers={**(arg_headers or {}), **(api_call.headers or {})}, follow_redirects=api_call.follow_redirects, **request_args, )