MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / isEmptyAuthHeader

Function isEmptyAuthHeader

client/src/lib/hooks/useConnection.ts:504–506  ·  view source on GitHub ↗
(header: CustomHeaders[number])

Source from the content-addressed store, hash-verified

502 let finalHeaders: CustomHeaders = customHeaders || [];
503
504 const isEmptyAuthHeader = (header: CustomHeaders[number]) =>
505 header.name.trim().toLowerCase() === "authorization" &&
506 header.value.trim().toLowerCase() === "bearer";
507
508 // Check for empty Authorization headers and show validation error
509 const hasEmptyAuthHeader = finalHeaders.some(

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected