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.
2 parents 5c0e2b2 + 725b3fd commit b519a17Copy full SHA for b519a17
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