Skip to content

Commit c90234a

Browse files
authored
Update index.ts
1 parent 07c20ad commit c90234a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/service-utils/src/node/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ function getHeader(
7676
headers: IncomingHttpHeaders | Headers,
7777
headerName: string,
7878
): string | null {
79-
return isNodeHeaders(headers)
79+
return isNodeHeaders(headers)
8080
? Array.isArray(headers[headerName])
8181
? (headers[headerName]?.[0] ?? null)
8282
: (headers[headerName] ?? null)
83-
: headers.get(headerName);
83+
: headers.get(headerName) ?? null;
8484
}
8585

8686
export function extractAuthorizationData(

0 commit comments

Comments
 (0)