mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
🐛 Fix issue where the QS would be ignored (#3967)
This commit is contained in:
@@ -273,7 +273,7 @@ export class Aws implements ICredentialType {
|
||||
requestOptions: IHttpRequestOptions,
|
||||
): Promise<IHttpRequestOptions> {
|
||||
let endpoint;
|
||||
let service = requestOptions.qs?.service;
|
||||
let service = requestOptions.qs?.service as string;
|
||||
let path = requestOptions.qs?.path;
|
||||
const method = requestOptions.method;
|
||||
const body = requestOptions.body;
|
||||
@@ -314,9 +314,10 @@ export class Aws implements ICredentialType {
|
||||
path = customUrl.pathname as string;
|
||||
endpoint = customUrl;
|
||||
}
|
||||
if (service === 's3' && credentials.s3Endpoint) {
|
||||
if (service.includes('.s3')) {
|
||||
path = `${endpoint.pathname}?${queryToString(query).replace(/\+/g, '%2B')}`;
|
||||
}
|
||||
|
||||
const signOpts = {
|
||||
headers: requestOptions.headers,
|
||||
host: endpoint.host,
|
||||
|
||||
Reference in New Issue
Block a user