mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
Trim whitespaces in the AWS credentials in other nodes
This commit is contained in:
parent
2f9bab571d
commit
de50e2479d
|
@ -20,7 +20,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
|
||||||
|
|
||||||
// Sign AWS API request with the user credentials
|
// Sign AWS API request with the user credentials
|
||||||
const signOpts = { headers: headers || {}, host: endpoint, method, path, body };
|
const signOpts = { headers: headers || {}, host: endpoint, method, path, body };
|
||||||
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`, secretAccessKey: `${credentials.secretAccessKey}` });
|
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`.trim(), secretAccessKey: `${credentials.secretAccessKey}`.trim() });
|
||||||
|
|
||||||
const options: OptionsWithUri = {
|
const options: OptionsWithUri = {
|
||||||
headers: signOpts.headers,
|
headers: signOpts.headers,
|
||||||
|
|
Loading…
Reference in a new issue