PhillHenry commented on code in PR #3729:
URL: https://github.com/apache/polaris/pull/3729#discussion_r2792556388


##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergRESTExternalCatalogFactory.java:
##########
@@ -50,13 +53,18 @@ public Catalog createCatalog(
     }
 
     SessionCatalog.SessionContext context = 
SessionCatalog.SessionContext.createEmpty();
+    Map<String, String> extraHeaders =
+        
extraHeadersFrom(icebergConfig.asIcebergCatalogProperties(polarisCredentialManager));
+
     RESTCatalog federatedCatalog =
         new RESTCatalog(
             context,
-            (config) ->
-                HTTPClient.builder(config)
-                    .uri(config.get(org.apache.iceberg.CatalogProperties.URI))
-                    .build());
+            (config) -> {
+              return HTTPClient.builder(config)
+                  .withHeaders(extraHeaders)
+                  .uri(config.get(org.apache.iceberg.CatalogProperties.URI))

Review Comment:
   You mean a static import of URI? That's not my code but happy to if you want 
it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to