Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't use DEFAULT_REGION for listBuckets method #1248

Merged
merged 8 commits into from
Mar 19, 2024
2 changes: 1 addition & 1 deletion src/internal/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ export class TypedClient {

async listBuckets(): Promise<BucketItemFromList[]> {
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)
}
Expand Down
Loading