mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Enable HTTP/2 download again
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user