diff options
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/api/server.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 53cfe55a3..1f47af8a0 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -2182,14 +2182,12 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp } pub fn onStartStreamingRequestBody(this: *RequestContext) JSC.WebCore.DrainResult { - if (this.aborted or this.finalized) { + if (this.aborted) { return JSC.WebCore.DrainResult{ .aborted = void{}, }; } - std.debug.assert(!this.resp.hasResponded()); - // This means we have received part of the body but not the whole thing if (this.request_body_buf.items.len > 0) { var emptied = this.request_body_buf; |