mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
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.
This commit is contained in:
parent
611a1fdd6d
commit
3127bd79fb
@ -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);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user