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 {
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 = {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments