Merge branch 'main' into patch-1
This commit is contained in:
commit
88f962d463
1 changed files with 270 additions and 23 deletions
|
|
@ -343,7 +343,7 @@ export class StreamableHTTPServerTransport implements Transport {
|
|||
if (isInitializationRequest) {
|
||||
// If it's a server with session management and the session ID is already set we should reject the request
|
||||
// to avoid re-initialization.
|
||||
if (this._initialized) {
|
||||
if (this._initialized && this.sessionId !== undefined) {
|
||||
res.writeHead(400).end(JSON.stringify({
|
||||
jsonrpc: "2.0",
|
||||
error: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue