Skip to content

Commit 9967278

Browse files
committed
fix: health check should not require SSE headers
Health endpoint returns plain text 'OK', not SSE stream. Removed Accept: text/event-stream header from health check.
1 parent af23cec commit 9967278

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test_http_agentic_tools.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,9 @@
139139
def check_server():
140140
"""Check if HTTP server is running."""
141141
try:
142-
# Health endpoint requires Accept: text/event-stream header
143-
response = requests.get(
144-
f"{BASE_URL}/health",
145-
headers={"Accept": "text/event-stream"},
146-
timeout=2
147-
)
148-
if response.status_code == 200:
142+
# Health endpoint returns plain text "OK"
143+
response = requests.get(f"{BASE_URL}/health", timeout=2)
144+
if response.status_code == 200 and response.text.strip() == "OK":
149145
print(f"✓ Server is running at {BASE_URL}")
150146
return True
151147
else:

0 commit comments

Comments
 (0)