This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new f8054886 REST: Remove spec-version version HTTP header (#2358)
f8054886 is described below
commit f80548864369f6d1a5ee0c8425a1fd02ee9da1d6
Author: Fokko Driesprong <[email protected]>
AuthorDate: Tue Aug 19 14:32:56 2025 +0200
REST: Remove spec-version version HTTP header (#2358)
# Rationale for this change
This was added way ago, but I don't think it makes any sense for two
reasons:
- It was never updated properly :)
- The spec is not versioned with the Java release
Better to clean this up
# Are these changes tested?
# Are there any user-facing changes?
<!-- In the case of user-facing changes, please add the changelog label.
-->
---
pyiceberg/catalog/rest/__init__.py | 3 ---
tests/catalog/test_rest.py | 1 -
2 files changed, 4 deletions(-)
diff --git a/pyiceberg/catalog/rest/__init__.py
b/pyiceberg/catalog/rest/__init__.py
index c43a64f3..afbaa7db 100644
--- a/pyiceberg/catalog/rest/__init__.py
+++ b/pyiceberg/catalog/rest/__init__.py
@@ -80,8 +80,6 @@ from pyiceberg.utils.properties import
get_first_property_value, get_header_prop
if TYPE_CHECKING:
import pyarrow as pa
-ICEBERG_REST_SPEC_VERSION = "0.14.1"
-
class Endpoints:
get_config: str = "config"
@@ -485,7 +483,6 @@ class RestCatalog(Catalog):
header_properties = get_header_properties(self.properties)
session.headers.update(header_properties)
session.headers["Content-type"] = "application/json"
- session.headers["X-Client-Version"] = ICEBERG_REST_SPEC_VERSION
session.headers["User-Agent"] = f"PyIceberg/{__version__}"
session.headers.setdefault("X-Iceberg-Access-Delegation",
ACCESS_DELEGATION_DEFAULT)
diff --git a/tests/catalog/test_rest.py b/tests/catalog/test_rest.py
index b21b8fc3..0c3e1ce8 100644
--- a/tests/catalog/test_rest.py
+++ b/tests/catalog/test_rest.py
@@ -59,7 +59,6 @@ TEST_RESOURCE = "test_resource"
TEST_HEADERS = {
"Content-type": "application/json",
- "X-Client-Version": "0.14.1",
"User-Agent": f"PyIceberg/{pyiceberg.__version__}",
"Authorization": f"Bearer {TEST_TOKEN}",
"X-Iceberg-Access-Delegation": "vended-credentials",