mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-04-20 12:49:33 +08:00
fix: 修复聚合模式下,名称带有中文或特殊符号的分享token判断异常的问题
This commit is contained in:
parent
5696492dde
commit
c5d8aff73c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.0",
|
"version": "2.19.1",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -54,7 +54,7 @@ export default function serve() {
|
|||||||
next();
|
next();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const pathname = req._parsedUrl.pathname || '/';
|
const pathname = decodeURIComponent(req._parsedUrl.pathname) || '/';
|
||||||
if(be_merge && req.path.startsWith('/share/') && req.query.token){
|
if(be_merge && req.path.startsWith('/share/') && req.query.token){
|
||||||
if (req.method.toLowerCase() !== 'get'){
|
if (req.method.toLowerCase() !== 'get'){
|
||||||
res.status(405).send('Method not allowed');
|
res.status(405).send('Method not allowed');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user