| ... | @@ -50,7 +50,6 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | ... | @@ -50,7 +50,6 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 50 | const _url = try std.mem.join(gpa, "/", &.{ found.git, "blob", "HEAD", "zig.mod" }); | 50 | const _url = try std.mem.join(gpa, "/", &.{ found.git, "blob", "HEAD", "zig.mod" }); |
| 51 | var _req = try client.open(.GET, try std.Uri.parse(_url), .{ | 51 | var _req = try client.open(.GET, try std.Uri.parse(_url), .{ |
| 52 | .server_header_buffer = &buf, | 52 | .server_header_buffer = &buf, |
| 53 | .redirect_behavior = .not_allowed, | | |
| 54 | }); | 53 | }); |
| 55 | defer _req.deinit(); | 54 | defer _req.deinit(); |
| 56 | try _req.send(); | 55 | try _req.send(); |
| ... | @@ -62,7 +61,6 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { | ... | @@ -62,7 +61,6 @@ pub fn execute(self_name: []const u8, args: [][:0]u8) !void { |
| 62 | const _url = try std.mem.join(gpa, "/", &.{ found.git, "blob", "HEAD", "zigmod.yml" }); | 61 | const _url = try std.mem.join(gpa, "/", &.{ found.git, "blob", "HEAD", "zigmod.yml" }); |
| 63 | var _req = try client.open(.GET, try std.Uri.parse(_url), .{ | 62 | var _req = try client.open(.GET, try std.Uri.parse(_url), .{ |
| 64 | .server_header_buffer = &buf, | 63 | .server_header_buffer = &buf, |
| 65 | .redirect_behavior = .not_allowed, | | |
| 66 | }); | 64 | }); |
| 67 | defer _req.deinit(); | 65 | defer _req.deinit(); |
| 68 | try _req.send(); | 66 | try _req.send(); |