Merge branch 'modelcontextprotocol:main' into add-logging-message-handler

This commit is contained in:
Cliff Hall 2025-03-15 12:38:27 -04:00 • committed by GitHub
commit f01f02d5be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,9 @@ const createTransport = async (req: express.Request) => {
return transport;
} else if (transportType === "sse") {
const url = query.url as string;
const headers: HeadersInit = {};
const headers: HeadersInit = {
Accept: "text/event-stream",
};
for (const key of SSE_HEADERS_PASSTHROUGH) {
if (req.headers[key] === undefined) {
continue;