Commit f1cf300c8f

Andrew Kelley <andrew@ziglang.org>
2024-02-11 22:57:26
std.http.Server: fix error set
It incorrectly had NotWriteable and MessageTooLong in it.
1 parent f58c59f
Changed files (1)
lib
std
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`.