Skip to content

Commit 1df3487

Browse files
authored
Update streamableHttp.ts
1 parent 0058c30 commit 1df3487

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/server/streamableHttp.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,7 @@ export class StreamableHTTPServerTransport implements Transport {
480480
}));
481481
return false;
482482
}
483-
if (this.sessionId === undefined) {
484-
// If the session ID is not set, the session management is disabled
485-
// and we don't need to validate the session ID
486-
return true;
487-
}
483+
488484
const sessionId = req.headers["mcp-session-id"];
489485

490486
if (!sessionId) {

0 commit comments

Comments
 (0)