Update streamableHttp.ts
This commit is contained in:
parent
0058c30032
commit
1df348710b
1 changed files with 1 additions and 5 deletions
|
|
@ -480,11 +480,7 @@ export class StreamableHTTPServerTransport implements Transport {
|
|||
}));
|
||||
return false;
|
||||
}
|
||||
if (this.sessionId === undefined) {
|
||||
// If the session ID is not set, the session management is disabled
|
||||
// and we don't need to validate the session ID
|
||||
return true;
|
||||
}
|
||||
|
||||
const sessionId = req.headers["mcp-session-id"];
|
||||
|
||||
if (!sessionId) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue