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 89ba2ec commit 0a3d0afCopy full SHA for 0a3d0af
overrides/js/prepend-node.js
@@ -12,6 +12,14 @@
12
13
const wrapModule = require('./wrap-require');
14
15
+// These should always both be set identically by HTTP Toolkit, so this should be a no-op.
16
+// Unfortunately, on Windows env vars are case insensitive, and the logic to handle this
17
+// in worker threads this has a bug in some versions, so this is required. More details in
18
+// https://github.com/httptoolkit/httptoolkit-server/issues/91.
19
+if (process.env.http_proxy && !process.env.HTTP_PROXY) {
20
+ process.env.HTTP_PROXY = process.env.http_proxy;
21
+}
22
+
23
wrapModule('axios', function wrapAxios (loadedModule) {
24
// Global agent handles this automatically, if used (i.e. Node >= 10)
25
if (global.GLOBAL_AGENT) return;
0 commit comments