File tree 1 file changed +8
-5
lines changed
localstack-core/localstack/services/apigateway/next_gen/execute_api/integrations 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,14 @@ def invoke(self, context: RestApiInvocationContext) -> EndpointResponse:
188
188
if credentials := integration .get ("credentials" ):
189
189
credentials = render_uri_with_stage_variables (credentials , context .stage_variables )
190
190
191
- headers = integration_req ["headers" ] | get_internal_mocked_headers (
192
- service_name = service_name ,
193
- region_name = integration_region ,
194
- source_arn = get_source_arn (context ),
195
- role_arn = credentials ,
191
+ headers = integration_req ["headers" ]
192
+ headers .update (
193
+ get_internal_mocked_headers (
194
+ service_name = service_name ,
195
+ region_name = integration_region ,
196
+ source_arn = get_source_arn (context ),
197
+ role_arn = credentials ,
198
+ )
196
199
)
197
200
query_params = integration_req ["query_string_parameters" ].copy ()
198
201
data = integration_req ["body" ]
You can’t perform that action at this time.
0 commit comments