diff --git a/src/internal/client.ts b/src/internal/client.ts index 16481961..e47c4cc6 100644 --- a/src/internal/client.ts +++ b/src/internal/client.ts @@ -1480,7 +1480,7 @@ export class TypedClient { async listBuckets(): Promise { const method = 'GET' - const httpRes = await this.makeRequestAsync({ method }, '', [200], DEFAULT_REGION) + const httpRes = await this.makeRequestAsync({ method }, '', [200], this.region ?? '') const xmlResult = await readAsString(httpRes) return xmlParsers.parseListBucket(xmlResult) }