diff --git a/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java b/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java index 0a602e09..8d2718e8 100644 --- a/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java +++ b/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java @@ -33,6 +33,7 @@ import org.apache.iceberg.catalog.SessionCatalog; import org.apache.iceberg.rest.HTTPClient; import org.apache.iceberg.rest.RESTCatalog; +import org.apache.iceberg.rest.RESTUtil; public class RESTCatalogFactory { @@ -63,6 +64,7 @@ public static RESTCatalog create(byte[] caCrt, boolean sslVerify) { x -> HTTPClient.builder(x) .uri(x.get(CatalogProperties.URI)) + .withHeaders(RESTUtil.configHeaders(x)) .withTlsSocketStrategy(tlsSocketStrategy) .build()); }