aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-16 17:12:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commitd574875f00db32c40019c69465d450a6a58da67f (patch)
treec19f6263bd774f08a28d17666a41495333eb4f89 /test
parent3d61890d2405dc861db1e9e5a334ea6f2415a8f1 (diff)
downloadzig-d574875f00db32c40019c69465d450a6a58da67f.tar.gz
zig-d574875f00db32c40019c69465d450a6a58da67f.zip
Revert "std.http: remove 'done' flag"
This reverts commit 42be972a72c86b32ad8403d082ab42763c6facec. Using a bit to distinguish between headers and trailers is fine. It was just named and documented poorly.
Diffstat (limited to 'test')
-rw-r--r--test/standalone/http.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/standalone/http.zig b/test/standalone/http.zig
index ee029538bc..d6756fbeb8 100644
--- a/test/standalone/http.zig
+++ b/test/standalone/http.zig
@@ -673,7 +673,7 @@ pub fn main() !void {
var req = try client.open(.GET, uri, .{
.server_header_buffer = headers_buf,
});
- req.response.parser.state = .complete;
+ req.response.parser.done = true;
req.connection.?.closing = false;
requests[i] = req;
}