authorgravatar for truemedian@gmail.comNameless <truemedian@gmail.com> 2023-10-05 12:29:49-05:00
committergravatar for truemedian@gmail.comNameless <truemedian@gmail.com> 2023-10-21 20:52:58-05:00
loge11a8397602b23997e9ebfbd1b865dab4f6a18d1
treebbfef68690ff19333ce3bd029864c9dec85d00cc
parent0eef21d8ec290564ab503e5ad25f4c0c86f04d45
signaturelock-open Commit is signed but in an unrecognized format.

std.http: use loadDefaultProxies in compiler


2 files changed, 5 insertions(+), 1 deletions(-)

lib/std/std.zig+1-1
......@@ -285,7 +285,7 @@ pub const options = struct {
285285
286286 /// By default, std.http.Client will support HTTPS connections. Set this option to `true` to
287287 /// disable TLS support.
288 ///
288 ///
289289 /// This will likely reduce the size of the binary, but it will also make it impossible to
290290 /// make a HTTPS connection.
291291 pub const http_disable_tls = if (@hasDecl(options_override, "http_disable_tls"))
src/main.zig+4
......@@ -5128,6 +5128,8 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi
51285128 var http_client: std.http.Client = .{ .allocator = gpa };
51295129 defer http_client.deinit();
51305130
5131 try http_client.loadDefaultProxies();
5132
51315133 var progress: std.Progress = .{ .dont_print_on_dumb = true };
51325134 const root_prog_node = progress.start("Fetch Packages", 0);
51335135 defer root_prog_node.end();
......@@ -7039,6 +7041,8 @@ fn cmdFetch(
70397041 var http_client: std.http.Client = .{ .allocator = gpa };
70407042 defer http_client.deinit();
70417043
7044 try http_client.loadDefaultProxies();
7045
70427046 var progress: std.Progress = .{ .dont_print_on_dumb = true };
70437047 const root_prog_node = progress.start("Fetch", 0);
70447048 defer root_prog_node.end();