diff options
| author | 2023-05-25 20:41:00 -0300 | |
|---|---|---|
| committer | 2023-05-25 16:41:00 -0700 | |
| commit | e95f9c6daa5be93942982e502f310cbe2877cce2 (patch) | |
| tree | a389a223b90b891aaca2c9b6486445176c567177 /src | |
| parent | 50bad43dbe2c626085b1f667ed62fb3b1fc1fba4 (diff) | |
| download | bun-e95f9c6daa5be93942982e502f310cbe2877cce2.tar.gz bun-e95f9c6daa5be93942982e502f310cbe2877cce2.tar.zst bun-e95f9c6daa5be93942982e502f310cbe2877cce2.zip | |
[stream] fix flush (#3073)
* fix flush
* remove logs
Diffstat (limited to 'src')
| -rw-r--r-- | src/bun.js/webcore/streams.zig | 3 |
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; } |
