Skip to content

Commit b454b5a

Browse files
chore(internal): refactor array check
1 parent 2dcb4c5 commit b454b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mcp-server/src/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IncomingMessage } from 'node:http';
66

77
export const parseAuthHeaders = (req: IncomingMessage): Partial<ClientOptions> => {
88
const apiKey =
9-
req.headers['x-nextbillion-sdk-api-key'] instanceof Array ?
9+
Array.isArray(req.headers['x-nextbillion-sdk-api-key']) ?
1010
req.headers['x-nextbillion-sdk-api-key'][0]
1111
: req.headers['x-nextbillion-sdk-api-key'];
1212
return { apiKey };

0 commit comments

Comments
 (0)