aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-05-25 20:41:00 -0300
committerGravatar GitHub <noreply@github.com> 2023-05-25 16:41:00 -0700
commite95f9c6daa5be93942982e502f310cbe2877cce2 (patch)
treea389a223b90b891aaca2c9b6486445176c567177
parent50bad43dbe2c626085b1f667ed62fb3b1fc1fba4 (diff)
downloadbun-e95f9c6daa5be93942982e502f310cbe2877cce2.tar.gz
bun-e95f9c6daa5be93942982e502f310cbe2877cce2.tar.zst
bun-e95f9c6daa5be93942982e502f310cbe2877cce2.zip
[stream] fix flush (#3073)
* fix flush * remove logs
-rw-r--r--src/bun.js/webcore/streams.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index 186b9304a..dddfcbaf5 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -2377,8 +2377,7 @@ pub fn HTTPServerWritable(comptime ssl: bool) type {
this.has_backpressure = false;
return true;
} else {
- const backpressure = this.res.write(buf);
- this.has_backpressure = backpressure;
+ this.has_backpressure = !this.res.write(buf);
return true;
}