Skip to content

Commit 8cef90e

Browse files
committed
feat: 优化反代参数获取逻辑,修复路径解码问题
1 parent 750e8dd commit 8cef90e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ async function 请求优选API(urls, 默认端口 = '443', 超时时间 = 3000)
19151915

19161916
async function 反代参数获取(request) {
19171917
const url = new URL(request.url);
1918-
const { pathname, searchParams } = url;
1918+
const { searchParams } = url, pathname = decodeURIComponent(url.pathname);
19191919
const pathLower = pathname.toLowerCase();
19201920

19211921
// 初始化

0 commit comments

Comments
 (0)