Skip to content

Commit 15cebec

Browse files
jdwyahclaude
andauthored
Fix SDK version header name and value format (#25)
* Fix SDK version header name and value format The Python SDK was sending the wrong header name (`X-Reforge-Client-Version`) and wrong value format (`reforge-python-{version}`). The server expects `X-Reforge-SDK-Version` with format `sdk-python-{version}`, matching all other SDKs (Go, Node, Java, Ruby, JavaScript, React). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Bump version to 1.2.1 and update CHANGELOG Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Apply black formatting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b963a5d commit 15cebec

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [1.2.1] - 2026-02-25
4+
5+
- Fix SDK version header: use correct header name `X-Reforge-SDK-Version` and value format `sdk-python-{version}` to match all other SDKs [#25]
6+
37
## [1.2.0] - 2026-01-22
48

59
- Add SSE watchdog to detect stuck connections and trigger recovery via polling fallback [#20]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sdk-reforge"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
description = "Python sdk for Reforge Feature Flags and Config as a Service: https://www.reforge.com"
55
license = "MIT"
66
authors = ["Michael Berkowitz <michael.berkowitz@gmail.com>", "James Kebinger <james.kebinger@reforge.com>"]

sdk_reforge/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.2.1

sdk_reforge/_requests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ def __init__(self, options):
131131
self.session.mount("https://", requests.adapters.HTTPAdapter())
132132
self.session.mount("http://", requests.adapters.HTTPAdapter())
133133
self.session.headers.update(
134-
{
135-
"X-Reforge-Client-Version": f"reforge-python-{getattr(options, 'version', 'development')}"
136-
}
134+
{VersionHeader: f"sdk-python-{getattr(options, 'version', 'development')}"}
137135
)
138136
# Initialize a cache (here with a maximum of 2 entries).
139137
self.cache = LRUCache(max_size=2)

0 commit comments

Comments
 (0)