nits: remove dead comment & align test style on local idioms

This commit is contained in:
Olivier Chafik 2025-06-12 18:43:49 +01:00
commit e573a0f342
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View file

@ -220,8 +220,6 @@ export class SSEClientTransport implements Transport {
try {
const commonHeaders = await this._commonHeaders();
// Note: this._requestInit?.headers already set in _commonHeaders
// const headers = new Headers({ ...commonHeaders, ...this._requestInit?.headers });
const headers = new Headers(commonHeaders);
headers.set("content-type", "application/json");
const init = {

View file

@ -174,7 +174,7 @@ export class StreamableHTTPClientTransport implements Transport {
if (this._sessionId) {
headers["mcp-session-id"] = this._sessionId;
}
if (this.protocolVersion != null) {
if (this.protocolVersion) {
headers["mcp-protocol-version"] = this.protocolVersion;
}