in src/Runtime/InvokeContext.ts [30:45]
private getHeaderValue(key: string): string | undefined {
const headerVal = this.headers[key];
switch (typeof headerVal) {
case "undefined":
return undefined;
case "string":
return headerVal;
default:
if (headerVal.length == 0) {
return undefined;
}
return headerVal[0];
}
}