aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/blob.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-28 00:11:11 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-28 00:12:32 -0800
commit31389b49063a59fa66ab39e595f2ab3339af97c0 (patch)
tree3cdf93e0e7f0b1cab290f20bd7f437c327e1933e /src/bun.js/webcore/blob.zig
parentd93d1013a6dce4aabbdd9fb6a12901daeaa51886 (diff)
downloadbun-31389b49063a59fa66ab39e595f2ab3339af97c0.tar.gz
bun-31389b49063a59fa66ab39e595f2ab3339af97c0.tar.zst
bun-31389b49063a59fa66ab39e595f2ab3339af97c0.zip
Make response.body `null` only when user explicitly passes null/undefined
Diffstat (limited to 'src/bun.js/webcore/blob.zig')
-rw-r--r--src/bun.js/webcore/blob.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig
index 9e5ad4ec2..c0a865d5d 100644
--- a/src/bun.js/webcore/blob.zig
+++ b/src/bun.js/webcore/blob.zig
@@ -435,6 +435,7 @@ pub const Blob = struct {
},
// .InlineBlob,
.InternalBlob,
+ .Null,
.Empty,
.Blob,
=> {
@@ -665,6 +666,7 @@ pub const Blob = struct {
.Used,
.Empty,
.Blob,
+ .Null,
=> {
break :brk response.body.use();
},
@@ -699,6 +701,7 @@ pub const Blob = struct {
.Used,
.Empty,
.Blob,
+ .Null,
=> {
break :brk request.body.use();
},