File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,6 @@ export class SSEClientTransport implements Transport {
220
220
221
221
try {
222
222
const commonHeaders = await this . _commonHeaders ( ) ;
223
- // Note: this._requestInit?.headers already set in _commonHeaders
224
- // const headers = new Headers({ ...commonHeaders, ...this._requestInit?.headers });
225
223
const headers = new Headers ( commonHeaders ) ;
226
224
headers . set ( "content-type" , "application/json" ) ;
227
225
const init = {
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export class StreamableHTTPClientTransport implements Transport {
174
174
if ( this . _sessionId ) {
175
175
headers [ "mcp-session-id" ] = this . _sessionId ;
176
176
}
177
- if ( this . protocolVersion != null ) {
177
+ if ( this . protocolVersion ) {
178
178
headers [ "mcp-protocol-version" ] = this . protocolVersion ;
179
179
}
180
180
You can’t perform that action at this time.
0 commit comments