diff options
author | 2023-03-18 00:55:05 -0700 | |
---|---|---|
committer | 2023-03-18 00:55:05 -0700 | |
commit | a9c41c67e639714fbb4d7764e18be37615280c08 (patch) | |
tree | 200e293da7e447f349c9dc6c2cfee593d21a3eff /src/bun.js/api | |
parent | 1d4cc63154366dbdbdb87c8da43753cdac13d995 (diff) | |
download | bun-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.zig | 3 |
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(); } } |