Commit 3127bd79fb

Andrew Kelley <andrew@ziglang.org>
2022-12-31 04:26:49
std.http.Client: don't send TLS close_notify
It appears to be implemented incorrectly in the wild and causes the read connection to be closed even though that is a direct violation of RFC 8446 Section 6.1. The writeEnd function variants are still there, ready to be used.
1 parent 611a1fd
Changed files (1)
lib
std
lib/std/http/Client.zig
@@ -47,7 +47,7 @@ pub const Request = struct {
                 try req.stream.writeAll(req.headers.items);
             },
             .https => {
-                try req.tls_client.writeAllEnd(req.stream, req.headers.items, true);
+                try req.tls_client.writeAll(req.stream, req.headers.items);
             },
         }
     }