diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2025-08-16 13:11:19 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2025-08-16 22:07:16 +0200 |
| commit | 0cfd07bc865efa4b74d32b16b7dfd1a68167ce14 (patch) | |
| tree | 95e00d211eecf729491a4f2004834c95b04c3159 /lib/std/http/Client.zig | |
| parent | ce4e8a991f4d3d6f8b3f1f987fb955af9238ab53 (diff) | |
| download | zig-0cfd07bc865efa4b74d32b16b7dfd1a68167ce14.tar.gz zig-0cfd07bc865efa4b74d32b16b7dfd1a68167ce14.zip | |
http.BodyWriter: handle EOF in chunkedSendFile, simplify
With these changes, the `zig std` command now works again and doesn't
trigger assertion failures or mess up the chunked transfer encoding.
Diffstat (limited to 'lib/std/http/Client.zig')
| -rw-r--r-- | lib/std/http/Client.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig index fe28a930a4..f6a02c708f 100644 --- a/lib/std/http/Client.zig +++ b/lib/std/http/Client.zig @@ -907,7 +907,7 @@ pub const Request = struct { return switch (r.transfer_encoding) { .chunked => .{ .http_protocol_output = http_protocol_output, - .state = .{ .chunked = .init }, + .state = .init_chunked, .writer = .{ .buffer = buffer, .vtable = &.{ |
