refactor handle request types

This commit is contained in:
ihrpr 2025-04-07 16:15:09 +01:00
commit 8c2086ec97
No known key found for this signature in database

View file

@ -344,7 +344,7 @@ describe("StreamableHTTPServerTransport", () => {
"Allow": "POST, DELETE"
}));
expect(mockResponse.end).toHaveBeenCalledWith(expect.stringContaining('"jsonrpc":"2.0"'));
expect(mockResponse.end).toHaveBeenCalledWith(expect.stringContaining('Server does not offer an SSE stream at this endpoint'));
expect(mockResponse.end).toHaveBeenCalledWith(expect.stringContaining('Method not allowed'));
});
it("should reject POST requests without proper Accept header", async () => {