Skip to content

Commit 6e8ffbf

Browse files
authored
Fix 修复Quantumult X 下脚本执行超时的问题
删除 Header 中的 Content-Length
1 parent b462a1d commit 6e8ffbf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎10010/10010.cookie.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ if ($request && $request.method != 'OPTIONS' && $request.url.indexOf('querySigni
2323
chavy.msg(cookieName, `获取Cookie: 成功 (每日签到)`, ``)
2424
} else if ($request && $request.method != 'OPTIONS' && $request.url.indexOf('userLogin') >= 0) {
2525
const loginlotteryurlVal = $request.url
26-
const loginlotteryheaderVal = JSON.stringify($request.headers)
26+
var loginlotteryheaderVal = $request.headers
27+
if (loginlotteryheaderVal.hasOwnProperty('Content-Length')) delete loginlotteryheaderVal['Content-Length']
28+
loginlotteryheaderVal = JSON.stringify(loginlotteryheaderVal)
2729
if (loginlotteryurlVal) chavy.setdata(loginlotteryurlVal, loginlotteryurlKey)
2830
if (loginlotteryheaderVal) chavy.setdata(loginlotteryheaderVal, loginlotteryheaderKey)
2931
chavy.msg(cookieName, `获取Cookie: 成功 (登录抽奖)`, ``)

0 commit comments

Comments
 (0)