mirror of https://github.com/NobyDa/Script.git
Minor improvements.
This commit is contained in:
parent
cc13ac8aac
commit
4bb08662cc
|
@ -8,7 +8,7 @@
|
||||||
skip-proxy = iosapps.itunes.apple.com
|
skip-proxy = iosapps.itunes.apple.com
|
||||||
|
|
||||||
[Script]
|
[Script]
|
||||||
http-request ^https:\/\/testflight\.apple\.com\/v\d\/(app|account|invite)s\/ requires-body=1,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/TestFlight/TestFlightAccount.js,tag=TestFlight账户管理
|
http-request ^https:\/\/testflight\.apple\.com\/v\d\/(app|account|invite)s\/ requires-body=1,timeout=120,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/TestFlight/TestFlightAccount.js,tag=TestFlight账户管理
|
||||||
|
|
||||||
[MITM]
|
[MITM]
|
||||||
hostname = testflight.apple.com
|
hostname = testflight.apple.com
|
|
@ -5,7 +5,7 @@
|
||||||
skip-proxy = %APPEND% iosapps.itunes.apple.com
|
skip-proxy = %APPEND% iosapps.itunes.apple.com
|
||||||
|
|
||||||
[Script]
|
[Script]
|
||||||
TestFlight账户管理 = type=http-request,pattern=^https:\/\/testflight\.apple\.com\/v\d\/(app|account|invite)s\/,requires-body=1,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/TestFlight/TestFlightAccount.js
|
TestFlight账户管理 = type=http-request,pattern=^https:\/\/testflight\.apple\.com\/v\d\/(app|account|invite)s\/,requires-body=1,timeout=120,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/TestFlight/TestFlightAccount.js
|
||||||
|
|
||||||
[MITM]
|
[MITM]
|
||||||
hostname = %APPEND% testflight.apple.com
|
hostname = %APPEND% testflight.apple.com
|
|
@ -60,7 +60,8 @@ runs()
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
},
|
||||||
|
body: '{}'
|
||||||
},
|
},
|
||||||
...rsp
|
...rsp
|
||||||
};
|
};
|
||||||
|
@ -133,6 +134,7 @@ function formatHeaders(h) {
|
||||||
|
|
||||||
function ChangeHeaders(id) {
|
function ChangeHeaders(id) {
|
||||||
const re = JSON.parse(JSON.stringify(req)); //easy deep copy
|
const re = JSON.parse(JSON.stringify(req)); //easy deep copy
|
||||||
|
re.timeout = $.env.isLoon ? 30 * 1000 : 30;
|
||||||
if (id) {
|
if (id) {
|
||||||
$.log(`Request header replaced, using "${id}"`);
|
$.log(`Request header replaced, using "${id}"`);
|
||||||
re.headers[k1] = list[id][k1];
|
re.headers[k1] = list[id][k1];
|
||||||
|
|
Loading…
Reference in New Issue