feat: 增加 subscription-userinfo 兼容性

This commit is contained in:
xream
2024-12-04 00:56:53 +08:00
parent 6ba6365969
commit 074026a997
2 changed files with 4 additions and 2 deletions

View File

@@ -18,7 +18,9 @@ export function getFlowField(headers) {
}
}
return `${sub || ''}${webPage ? `;app_url=${webPage}` : ''}`;
return `${sub || ''}${
webPage ? `; app_url=${encodeURIComponent(webPage)}` : ''
}`;
}
export async function getFlowHeaders(
rawUrl,