There was an error while loading. Please reload this page.
1 parent 2dcb4c5 commit b454b5aCopy full SHA for b454b5a
packages/mcp-server/src/headers.ts
@@ -6,7 +6,7 @@ import { IncomingMessage } from 'node:http';
6
7
export const parseAuthHeaders = (req: IncomingMessage): Partial<ClientOptions> => {
8
const apiKey =
9
- req.headers['x-nextbillion-sdk-api-key'] instanceof Array ?
+ Array.isArray(req.headers['x-nextbillion-sdk-api-key']) ?
10
req.headers['x-nextbillion-sdk-api-key'][0]
11
: req.headers['x-nextbillion-sdk-api-key'];
12
return { apiKey };
0 commit comments