We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b20ca9 commit 2fa33e3Copy full SHA for 2fa33e3
src/client/streamableHttp.ts
@@ -555,8 +555,8 @@ export class StreamableHTTPClientTransport implements Transport {
555
this._hasCompletedAuthFlow = false;
556
this._lastUpscopingHeader = undefined;
557
558
- // If the response is 202 Accepted, there's no body to process
559
- if (response.status === 202) {
+ // If the response is 202 Accepted or 204 No Content, there's no body to process
+ if (response.status === 202 || response.status === 204) {
560
await response.body?.cancel();
561
// if the accepted notification is initialized, we start the SSE stream
562
// if it's supported by the server
0 commit comments