From a9c41c67e639714fbb4d7764e18be37615280c08 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Sat, 18 Mar 2023 00:55:05 -0700 Subject: Fix several bugs (#2418) * utf16 codepoint with replacement character * Fix test failure with `TextEncoder("ascii')` * Add missing type * Fix Response.prototype.bodyUsed and Request.prototype.bodyUsed * Fix bug with scrypt error not clearing * Update server.zig * oopsie --- src/bun.js/api/server.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bun.js/api') diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 113432942..cafd1d358 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -4620,6 +4620,9 @@ pub fn NewServer(comptime ssl_enabled_: bool, comptime debug_mode_: bool) type { zig_str = ZigString.init(std.fmt.allocPrint(bun.default_allocator, "OpenSSL {s}", .{message}) catch unreachable); var encoded_str = zig_str.withEncoding(); encoded_str.mark(); + + // We shouldn't *need* to do this but it's not entirely clear. + BoringSSL.ERR_clear_error(); } } -- cgit v1.2.3