Skip to content

Commit 9a018d6

Browse files
committed
chore: add user agent header
1 parent 0c654fc commit 9a018d6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

replane/_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(
105105
initialization_timeout_ms: Timeout for initial connection.
106106
retry_delay_ms: Initial delay between retries.
107107
inactivity_timeout_ms: Max time without SSE events before reconnect.
108-
agent: Agent identifier sent in X-Replane-Agent header. Defaults to SDK identifier.
108+
agent: Agent identifier sent in User-Agent header. Defaults to SDK identifier.
109109
debug: Enable debug logging to see all client activity.
110110
111111
Raises:
@@ -409,7 +409,7 @@ async def _connect_stream(self) -> None:
409409
"Authorization": f"Bearer {self._sdk_key}",
410410
"Accept": "text/event-stream",
411411
"Cache-Control": "no-cache",
412-
"X-Replane-Agent": self._agent,
412+
"User-Agent": self._agent,
413413
}
414414

415415
logger.debug("Connecting to SSE: %s", url)

replane/_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__(
104104
initialization_timeout_ms: Timeout for initial connection.
105105
retry_delay_ms: Initial delay between retries.
106106
inactivity_timeout_ms: Max time without SSE events before reconnect.
107-
agent: Agent identifier sent in X-Replane-Agent header. Defaults to SDK identifier.
107+
agent: Agent identifier sent in User-Agent header. Defaults to SDK identifier.
108108
debug: Enable debug logging to see all client activity.
109109
"""
110110
# Configure debug logging
@@ -407,7 +407,7 @@ def _connect_stream(self) -> None:
407407
"Content-Type": "application/json",
408408
"Accept": "text/event-stream",
409409
"Cache-Control": "no-cache",
410-
"X-Replane-Agent": self._agent,
410+
"User-Agent": self._agent,
411411
}
412412

413413
logger.debug("Sending POST request to %s", path)

0 commit comments

Comments
 (0)