fix: unsupported header takes precedence over header mismatch (#293)
This commit is contained in:
parent
1d05b1f06f
commit
0371b188bf
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ export class ServerStatelessScenario implements ClientScenario {
|
|||
const responseAbsent = await sendRpc(
|
||||
'server/discover',
|
||||
{ _meta: headerMismatchMeta },
|
||||
{ 'MCP-Protocol-Version': 'mismatch.version' },
|
||||
{ 'MCP-Protocol-Version': DRAFT_PROTOCOL_VERSION },
|
||||
302
|
||||
).catch(() => null);
|
||||
const resAbsent: any = responseAbsent?.res ?? null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue