mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +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 });
|
||||
}
|
||||
|
||||
const agent = new Agent({ allowH2: false });
|
||||
const agent = new Agent({ allowH2: true });
|
||||
|
||||
setGlobalDispatcher(agent.compose(
|
||||
interceptors.retry({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user