diff --git a/routes/airportsub.js b/routes/airportsub.js index 7611747..840efc5 100644 --- a/routes/airportsub.js +++ b/routes/airportsub.js @@ -12,6 +12,8 @@ function getscheme(req) { } function getuserinfo(headers) { + if (!headers) + return undefined const str = headers["subscription-userinfo"] if (str === undefined) { return undefined