Skip to content

Commit e573a0f

Browse files
committed
nits: remove dead comment & align test style on local idioms
1 parent a28e25a commit e573a0f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/client/sse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ export class SSEClientTransport implements Transport {
220220

221221
try {
222222
const commonHeaders = await this._commonHeaders();
223-
// Note: this._requestInit?.headers already set in _commonHeaders
224-
// const headers = new Headers({ ...commonHeaders, ...this._requestInit?.headers });
225223
const headers = new Headers(commonHeaders);
226224
headers.set("content-type", "application/json");
227225
const init = {

src/client/streamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class StreamableHTTPClientTransport implements Transport {
174174
if (this._sessionId) {
175175
headers["mcp-session-id"] = this._sessionId;
176176
}
177-
if (this.protocolVersion != null) {
177+
if (this.protocolVersion) {
178178
headers["mcp-protocol-version"] = this.protocolVersion;
179179
}
180180

0 commit comments

Comments
 (0)