diff options
author | 2022-08-18 19:05:07 -0700 | |
---|---|---|
committer | 2022-08-18 19:05:07 -0700 | |
commit | 51ced7d3e3de965002d2818b9c18cb5e61283eb7 (patch) | |
tree | 5a551af8708f4909186c010096e47fd8dce45677 /src/bun.js/api/server.zig | |
parent | 036e5800454c1d8a85bba5da29682fd53dcc3f17 (diff) | |
download | bun-51ced7d3e3de965002d2818b9c18cb5e61283eb7.tar.gz bun-51ced7d3e3de965002d2818b9c18cb5e61283eb7.tar.zst bun-51ced7d3e3de965002d2818b9c18cb5e61283eb7.zip |
Fix `bun:wrap` not loading
Diffstat (limited to 'src/bun.js/api/server.zig')
-rw-r--r-- | src/bun.js/api/server.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index aaa058330..4686c4a80 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -2163,7 +2163,7 @@ pub fn NewServer(comptime ssl_enabled_: bool, comptime debug_mode_: bool) type { if (wait_for_promise) { // Even if the user hasn't requested it, we have to start downloading the body!! // terrible for performance. - if (request_object.body == .Locked and (request_object.body.Locked.promise == null and request_object.body.Locked.readable == null) and ((HTTP.Method.which(req.method()) orelse HTTP.Method.OPTIONS).hasBody())) { + if (request_object.body == .Locked and (request_object.body.Locked.promise == null and request_object.body.Locked.readable == null) and ((HTTP.Method.which(req.method()) orelse HTTP.Method.OPTIONS).hasRequestBody())) { const req_len: usize = brk: { if (req.header("content-length")) |content_length| { break :brk std.fmt.parseInt(usize, content_length, 10) catch 0; |