Skip to content

Commit

Permalink
Fix executing remote function (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger authored Aug 4, 2023
1 parent 6ef48d8 commit cf0c6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/executeFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function executeFunction(context: IActionContext, node?: FunctionTr
'Content-Type': 'application/json',
});
if (client) {
headers['x-functions-key'] = (await client.listHostKeys()).masterKey;
headers.set('x-functions-key', (await client.listHostKeys()).masterKey ?? '');
}
try {
responseText = (await requestUtils.sendRequestWithExtTimeout(context, { method: 'POST', ...triggerRequest, headers, body: JSON.stringify(body) })).bodyAsText;
Expand Down

0 comments on commit cf0c6a6

Please sign in to comment.