aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-03-18 00:55:05 -0700
committerGravatar GitHub <noreply@github.com> 2023-03-18 00:55:05 -0700
commita9c41c67e639714fbb4d7764e18be37615280c08 (patch)
tree200e293da7e447f349c9dc6c2cfee593d21a3eff /src/bun.js/api
parent1d4cc63154366dbdbdb87c8da43753cdac13d995 (diff)
downloadbun-a9c41c67e639714fbb4d7764e18be37615280c08.tar.gz
bun-a9c41c67e639714fbb4d7764e18be37615280c08.tar.zst
bun-a9c41c67e639714fbb4d7764e18be37615280c08.zip
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
Diffstat (limited to 'src/bun.js/api')
-rw-r--r--src/bun.js/api/server.zig3
1 files changed, 3 insertions, 0 deletions
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();
}
}