Revert "fix(tls) fix type matching" (#15243)

This commit is contained in:
Meghan Denny
2024-11-19 00:08:25 -08:00
committed by GitHub
parent 46515d4865
commit ba767aa5ba
4 changed files with 8 additions and 10 deletions

View File

@@ -320,7 +320,7 @@ const ProxyTunnel = struct {
this.state.request_stage = .proxy_headers;
this.state.request_sent_len = 0;
const handshake_error = HTTPCertError{
.error_no = @intCast(ssl_error.error_no),
.error_no = ssl_error.error_no,
.code = if (ssl_error.code == null) "" else ssl_error.code[0..bun.len(ssl_error.code) :0],
.reason = if (ssl_error.code == null) "" else ssl_error.reason[0..bun.len(ssl_error.reason) :0],
};
@@ -511,7 +511,7 @@ const ProxyTunnel = struct {
};
pub const HTTPCertError = struct {
error_no: i64 = 0,
error_no: i32 = 0,
code: [:0]const u8 = "",
reason: [:0]const u8 = "",
};