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
signature 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 {...@@ -285,7 +285,7 @@ pub const options = struct {
285285
286 /// By default, std.http.Client will support HTTPS connections. Set this option to `true` to286 /// By default, std.http.Client will support HTTPS connections. Set this option to `true` to
287 /// disable TLS support.287 /// disable TLS support.
288 /// 288 ///
289 /// This will likely reduce the size of the binary, but it will also make it impossible to289 /// This will likely reduce the size of the binary, but it will also make it impossible to
290 /// make a HTTPS connection.290 /// make a HTTPS connection.
291 pub const http_disable_tls = if (@hasDecl(options_override, "http_disable_tls"))291 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...@@ -5128,6 +5128,8 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi
5128 var http_client: std.http.Client = .{ .allocator = gpa };5128 var http_client: std.http.Client = .{ .allocator = gpa };
5129 defer http_client.deinit();5129 defer http_client.deinit();
51305130
5131 try http_client.loadDefaultProxies();
5132
5131 var progress: std.Progress = .{ .dont_print_on_dumb = true };5133 var progress: std.Progress = .{ .dont_print_on_dumb = true };
5132 const root_prog_node = progress.start("Fetch Packages", 0);5134 const root_prog_node = progress.start("Fetch Packages", 0);
5133 defer root_prog_node.end();5135 defer root_prog_node.end();
...@@ -7039,6 +7041,8 @@ fn cmdFetch(...@@ -7039,6 +7041,8 @@ fn cmdFetch(
7039 var http_client: std.http.Client = .{ .allocator = gpa };7041 var http_client: std.http.Client = .{ .allocator = gpa };
7040 defer http_client.deinit();7042 defer http_client.deinit();
70417043
7044 try http_client.loadDefaultProxies();
7045
7042 var progress: std.Progress = .{ .dont_print_on_dumb = true };7046 var progress: std.Progress = .{ .dont_print_on_dumb = true };
7043 const root_prog_node = progress.start("Fetch", 0);7047 const root_prog_node = progress.start("Fetch", 0);
7044 defer root_prog_node.end();7048 defer root_prog_node.end();