🔨 chore: improve code (#8469)

This commit is contained in:
Arvin Xu
2025-07-17 13:09:41 +08:00
committed by GitHub
parent 054ca5fd97
commit 785406be9a
3 changed files with 6 additions and 7 deletions

View File

@@ -334,8 +334,7 @@ export default class RemoteServerSyncCtr extends ControllerModule {
method: method,
path: url.pathname + url.search,
port: url.port || (url.protocol === 'https:' ? 443 : 80),
protocol: url.protocol, // 注入代理
// agent: false, // Consider for keep-alive issues if they arise
protocol: url.protocol,
};
const requester = url.protocol === 'https:' ? https : http;