diff options
author | 2023-01-19 15:34:32 -0300 | |
---|---|---|
committer | 2023-01-19 10:34:32 -0800 | |
commit | 01c97e4033756b795b739ed0f19084d44ae626e8 (patch) | |
tree | 31b889a94026914e212d23a5f902153040992c11 /src | |
parent | cd5f2ab11fb33e805271b9b48711f3f592f30b0f (diff) | |
download | bun-01c97e4033756b795b739ed0f19084d44ae626e8.tar.gz bun-01c97e4033756b795b739ed0f19084d44ae626e8.tar.zst bun-01c97e4033756b795b739ed0f19084d44ae626e8.zip |
fix(fetch:HTTP_PROXY) fix support for HTTP_PROXY/HTTPS_PROXY and NO_PROXY in fetch instances (#1844)
* fix response.zig fetch
* use VM bundler env instead of DotEnv.instance
* remove unnecessary import
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/webcore/response.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig index 4a10d580f..7005888bc 100644 --- a/src/bun.js/webcore/response.zig +++ b/src/bun.js/webcore/response.zig @@ -729,7 +729,7 @@ pub const Fetch = struct { if (fetch_tasklet.request_body.store()) |store| { store.ref(); } - + fetch_tasklet.http.?.* = HTTPClient.AsyncHTTP.init( allocator, fetch_options.method, @@ -745,7 +745,7 @@ pub const Fetch = struct { ).init( fetch_tasklet, ), - null + jsc_vm.bundler.env.getHttpProxy(fetch_options.url) ); if (!fetch_options.follow_redirects) { |