authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-11 14:57:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 02:37:10-07:00
logf1cf300c8fa9842ec9c812310bdc9f3aeeb75359
tree5e37855d7bbd86264bcb221b443c8f8a49664acf
parentf58c59f89f9c49b29facf91937d9d78785824378

std.http.Server: fix error set

It incorrectly had NotWriteable and MessageTooLong in it.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/http/Server.zig+1-1
...@@ -712,7 +712,7 @@ pub const Response = struct {...@@ -712,7 +712,7 @@ pub const Response = struct {
712 }712 }
713 }713 }
714714
715 pub const FinishError = WriteError || error{MessageNotCompleted};715 pub const FinishError = Connection.WriteError || error{MessageNotCompleted};
716716
717 /// Finish the body of a request. This notifies the server that you have no more data to send.717 /// Finish the body of a request. This notifies the server that you have no more data to send.
718 /// Must be called after `send`.718 /// Must be called after `send`.