Skip to content

Commit 4e0c283

Browse files
committed
request id might be 0
1 parent 95f8986 commit 4e0c283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/streamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export class StreamableHTTPServerTransport implements Transport {
379379
// after sending all related responses
380380
shouldCloseConnection = true;
381381
}
382-
if (!requestId) {
382+
if (requestId === undefined) {
383383
throw new Error("No request ID provided for the message");
384384
}
385385

0 commit comments

Comments
 (0)