Skip to content

Commit a58160c

Browse files
authored
fix: remove no use codes. (#119)
05-01.zig There are two lines of redundant code that need to be removed.
2 parents 50e93ab + 0f1e1ff commit a58160c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

assets/src/05-01.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ pub fn main() !void {
1111
defer client.deinit();
1212

1313
const uri = try std.Uri.parse("http://httpbin.org/headers");
14-
const buf = try allocator.alloc(u8, 1024 * 8);
15-
defer allocator.free(buf);
1614
var req = try client.request(.GET, uri, .{
1715
.extra_headers = &.{.{ .name = "Custom-header", .value = "Custom Value" }},
1816
});

0 commit comments

Comments
 (0)