mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Enable HTTP/2 download again
This commit is contained in:
parent
601a8ed30a
commit
fe7df4a457
@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
|
|||||||
fs.mkdirSync(CACHE_DIR, { recursive: true });
|
fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
const agent = new Agent({ allowH2: false });
|
const agent = new Agent({ allowH2: true });
|
||||||
|
|
||||||
setGlobalDispatcher(agent.compose(
|
setGlobalDispatcher(agent.compose(
|
||||||
interceptors.retry({
|
interceptors.retry({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user