mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(S3 Node): Fix issue when connecting to Supabase storage (#13667)
This commit is contained in:
@@ -51,7 +51,7 @@ export async function s3ApiRequest(
|
||||
}
|
||||
}
|
||||
|
||||
endpoint.pathname = path;
|
||||
endpoint.pathname = `${endpoint.pathname === '/' ? '' : endpoint.pathname}${path}`;
|
||||
|
||||
// Sign AWS API request with the user credentials
|
||||
const signOpts = {
|
||||
@@ -59,7 +59,7 @@ export async function s3ApiRequest(
|
||||
region: region || credentials.region,
|
||||
host: endpoint.host,
|
||||
method,
|
||||
path: `${path}?${queryToString(query).replace(/\+/g, '%2B')}`,
|
||||
path: `${endpoint.pathname}?${queryToString(query).replace(/\+/g, '%2B')}`,
|
||||
service: 's3',
|
||||
body,
|
||||
} as Request;
|
||||
|
||||
Reference in New Issue
Block a user