From 872058742fbd1070d55385e2e8f06227c16220bb Mon Sep 17 00:00:00 2001 From: lyz05 <294068487@qq.com> Date: Tue, 8 Nov 2022 15:57:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DOSS=E4=B8=AD=E6=B2=A1?= =?UTF-8?q?=E6=9C=89headers=EF=BC=8C=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=89=93=E5=BC=80=E8=AE=A2=E9=98=85=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/airportsub.js | 2 ++ 1 file changed, 2 insertions(+) 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