request id might be 0

This commit is contained in:
ihrpr 2025-04-08 15:11:56 +01:00
commit 4e0c2837f5
No known key found for this signature in database

View file

@ -379,7 +379,7 @@ export class StreamableHTTPServerTransport implements Transport {
// after sending all related responses
shouldCloseConnection = true;
}
if (!requestId) {
if (requestId === undefined) {
throw new Error("No request ID provided for the message");
}