We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff377c commit 725b3fdCopy full SHA for 725b3fd
editors/code/src/net.ts
@@ -9,7 +9,6 @@ import * as zlib from "zlib";
9
import * as util from "util";
10
import * as path from "path";
11
import { log, assert } from "./util";
12
-import * as url from "url";
13
import * as https from "https";
14
import { ProxySettings } from "./config";
15
@@ -21,7 +20,7 @@ const REPO = "rust-analyzer";
21
20
22
function makeHttpAgent(proxy: string | null | undefined, options?: https.AgentOptions) {
23
if (proxy) {
24
- return new HttpsProxyAgent(proxy, { ...options, ...url.parse(proxy) });
+ return new HttpsProxyAgent({ ...options, ...new URL(proxy) });
25
} else {
26
return new https.Agent(options);
27
}
0 commit comments