Skip to content

Commit b5152d8

Browse files
committed
fix: send both application/json and text/event-stream in Accept header
HTTP server validates that clients accept both content types. Changed Accept header from 'text/event-stream' to 'application/json, text/event-stream' to satisfy validation.
1 parent a8776b4 commit b5152d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_http_agentic_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ def send_request(self, payload, timeout=60):
157157
try:
158158
start_time = time.time()
159159

160-
# HTTP server returns SSE stream - need to accept text/event-stream
160+
# HTTP server requires both JSON and SSE content types
161161
headers = {
162162
"Content-Type": "application/json",
163-
"Accept": "text/event-stream"
163+
"Accept": "application/json, text/event-stream"
164164
}
165165

166166
# Add session ID if we have one

0 commit comments

Comments
 (0)