mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(tests): resolve stream readiness regression in chatcore translation tests
The stream readiness gate from PR #1693 validates SSE body content. The test harness checked only `headers.accept` (lowercase) but executors set `Accept` (capital A), causing the harness to return JSON instead of SSE for streaming requests. Fixed by checking both header casings.
This commit is contained in:
@@ -324,7 +324,7 @@ async function invokeChatCore({
|
||||
return responseFactory(captured, calls);
|
||||
}
|
||||
|
||||
const upstreamStream = String(headers.accept || "")
|
||||
const upstreamStream = String(headers.Accept || headers.accept || "")
|
||||
.toLowerCase()
|
||||
.includes("text/event-stream");
|
||||
if (responseFormat === "claude") return buildClaudeResponse(upstreamStream);
|
||||
|
||||
Reference in New Issue
Block a user