Skip to content

Commit f1827ce

Browse files
committed
handle not implemented get
1 parent c3b446d commit f1827ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/streamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class StreamableHTTPClientTransport implements Transport {
121121
signal: this._abortController?.signal,
122122
});
123123

124-
if (response.status === 405) {
124+
if (response.status === 405 || response.status === 404) {
125125
// Server doesn't support GET for SSE, which is allowed by the spec
126126
// We'll rely on SSE responses to POST requests for communication
127127
return;

0 commit comments

Comments
 (0)