fix: 修复OSS中没有headers,无法正常打开订阅页面的BUG

This commit is contained in:
lyz05
2022-11-08 15:57:28 +08:00
parent 8c425b4264
commit 872058742f

View File

@@ -12,6 +12,8 @@ function getscheme(req) {
}
function getuserinfo(headers) {
if (!headers)
return undefined
const str = headers["subscription-userinfo"]
if (str === undefined) {
return undefined