Commit cf4a2c4d18

Andrew Kelley <andrew@ziglang.org>
2024-02-16 09:03:58
std.http.Client.Response.ParseError: remove OutOfMemory
This can no longer fail due to OOM.
1 parent 99a5de9
Changed files (1)
lib
std
lib/std/http/Client.zig
@@ -419,7 +419,7 @@ pub const Compression = union(enum) {
 
 /// A HTTP response originating from a server.
 pub const Response = struct {
-    pub const ParseError = Allocator.Error || error{
+    pub const ParseError = error{
         HttpHeadersInvalid,
         HttpHeaderContinuationsUnsupported,
         HttpTransferEncodingUnsupported,