diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/webcore/response.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig index fff40669c..80ffc62ec 100644 --- a/src/bun.js/webcore/response.zig +++ b/src/bun.js/webcore/response.zig @@ -4026,6 +4026,10 @@ pub const AnyBlob = union(enum) { // return owned; // }, .InternalBlob => { + if (this.InternalBlob.bytes.items.len == 0) { + return ZigString.Empty.toValue(global); + } + const owned = this.InternalBlob.toStringOwned(global); this.* = .{ .Blob = .{} }; return owned; |