From 5dad12abbb1abaacf949b2705320c3b4b30d6b99 Mon Sep 17 00:00:00 2001 From: Mason Chen Date: Thu, 24 Jul 2025 14:33:30 +0800 Subject: [PATCH] Fix indent --- src/client/streamableHttp.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/streamableHttp.ts b/src/client/streamableHttp.ts index 77a15c923..12714ea44 100644 --- a/src/client/streamableHttp.ts +++ b/src/client/streamableHttp.ts @@ -207,7 +207,7 @@ export class StreamableHTTPClientTransport implements Transport { headers.set("last-event-id", resumptionToken); } -const response = await (this._fetch ?? fetch)(this._url, { + const response = await (this._fetch ?? fetch)(this._url, { method: "GET", headers, signal: this._abortController?.signal, @@ -427,7 +427,7 @@ const response = await (this._fetch ?? fetch)(this._url, { signal: this._abortController?.signal, }; -const response = await (this._fetch ?? fetch)(this._url, init); + const response = await (this._fetch ?? fetch)(this._url, init); // Handle session ID received during initialization const sessionId = response.headers.get("mcp-session-id"); @@ -533,7 +533,7 @@ const response = await (this._fetch ?? fetch)(this._url, init); signal: this._abortController?.signal, }; -const response = await (this._fetch ?? fetch)(this._url, init); + const response = await (this._fetch ?? fetch)(this._url, init); // We specifically handle 405 as a valid response according to the spec, // meaning the server does not support explicit session termination