diff --git a/src/catalog/IcebergRestCatalog.ts b/src/catalog/IcebergRestCatalog.ts index 5ac4c95..6be3288 100644 --- a/src/catalog/IcebergRestCatalog.ts +++ b/src/catalog/IcebergRestCatalog.ts @@ -85,8 +85,10 @@ export class IcebergRestCatalog { prefix += `/${options.catalogName}` } + const baseUrl = options.baseUrl.endsWith('/') ? options.baseUrl : `${options.baseUrl}/` + this.client = createFetchClient({ - baseUrl: options.baseUrl, + baseUrl, auth: options.auth, fetchImpl: options.fetch, })