mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
🐛 Fix AWS lambda and SNS problem with signature (#1361)
This commit is contained in:
parent
13795ea321
commit
5a6b191688
|
@ -36,7 +36,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
|
|||
const endpoint = new URL(getEndpointForService(service, credentials) + path);
|
||||
|
||||
// Sign AWS API request with the user credentials
|
||||
const signOpts = { headers: headers || {}, host: endpoint.host, method, path: endpoint.pathname, body };
|
||||
const signOpts = { headers: headers || {}, host: endpoint.host, method, path, body };
|
||||
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`.trim(), secretAccessKey: `${credentials.secretAccessKey}`.trim() });
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue