We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3fdd2 commit 5932296Copy full SHA for 5932296
lib/std/http.zig
@@ -274,5 +274,6 @@ const std = @import("std.zig");
274
test {
275
_ = Client;
276
_ = Method;
277
+ _ = Server;
278
_ = Status;
279
}
lib/std/http/Server.zig
@@ -735,9 +735,12 @@ test "HTTP server handles a chunked transfer coding request" {
735
736
const server_thread = try std.Thread.spawn(.{}, (struct {
737
fn apply(s: *std.http.Server) !void {
738
- const res = try s.accept(.{ .dynamic = max_header_size });
+ var res = try s.accept(.{
739
+ .allocator = allocator,
740
+ .header_strategy = .{ .dynamic = max_header_size },
741
+ });
742
defer res.deinit();
- defer res.reset();
743
+ defer _ = res.reset();
744
try res.wait();
745
746
try expect(res.request.transfer_encoding.? == .chunked);
0 commit comments