From f1cf300c8fa9842ec9c812310bdc9f3aeeb75359 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 11 Feb 2024 14:57:26 -0700 Subject: [PATCH] std.http.Server: fix error set It incorrectly had NotWriteable and MessageTooLong in it. --- lib/std/http/Server.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/http/Server.zig b/lib/std/http/Server.zig index ab46fdcc4c818f943f8d87ebb7e9c05b899237d0..e139ea597957e0eec23b48cbb8da447cac124463 100644 --- a/lib/std/http/Server.zig +++ b/lib/std/http/Server.zig @@ -712,7 +712,7 @@ pub const Response = struct { } } - pub const FinishError = WriteError || error{MessageNotCompleted}; + pub const FinishError = Connection.WriteError || error{MessageNotCompleted}; /// Finish the body of a request. This notifies the server that you have no more data to send. /// Must be called after `send`. -- 2.54.0