Fix for #23999 - 'req.header is not a function'

Signed-off-by: Steve Zhang <huigang.zhang@gmail.com>
This commit is contained in:
Steve Zhang
2024-04-04 22:30:41 -04:00
parent 51104134d6
commit dd269e92f0
2 changed files with 22 additions and 1 deletions
@@ -172,7 +172,7 @@ export class KubernetesProxy {
)?.toString(),
};
const authHeader = req.header(HEADER_KUBERNETES_AUTH);
const authHeader = req.header?.(HEADER_KUBERNETES_AUTH);
if (authHeader) {
req.headers.authorization = authHeader;
} else {