We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c20ad commit c90234aCopy full SHA for c90234a
packages/service-utils/src/node/index.ts
@@ -76,11 +76,11 @@ function getHeader(
76
headers: IncomingHttpHeaders | Headers,
77
headerName: string,
78
): string | null {
79
- return isNodeHeaders(headers)
+ return isNodeHeaders(headers)
80
? Array.isArray(headers[headerName])
81
? (headers[headerName]?.[0] ?? null)
82
: (headers[headerName] ?? null)
83
- : headers.get(headerName);
+ : headers.get(headerName) ?? null;
84
}
85
86
export function extractAuthorizationData(
0 commit comments