diff options
author | 2021-11-25 01:07:55 -0800 | |
---|---|---|
committer | 2021-12-16 19:18:51 -0800 | |
commit | 9f1946ce702e257ac85e70f17747014fdb86e62f (patch) | |
tree | 5b7d2de8471aa4c24f4a9eb34c9da456a9dc9b22 /src/io/io_darwin.zig | |
parent | 32be2866f6adc9dcce9787da1494bc59c8be3df7 (diff) | |
download | bun-9f1946ce702e257ac85e70f17747014fdb86e62f.tar.gz bun-9f1946ce702e257ac85e70f17747014fdb86e62f.tar.zst bun-9f1946ce702e257ac85e70f17747014fdb86e62f.zip |
[npm install] Use BoringSSL for https:// requests
Diffstat (limited to 'src/io/io_darwin.zig')
-rw-r--r-- | src/io/io_darwin.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/io/io_darwin.zig b/src/io/io_darwin.zig index f1ff5a06e..d3e09cf15 100644 --- a/src/io/io_darwin.zig +++ b/src/io/io_darwin.zig @@ -231,6 +231,7 @@ const Operation = union(enum) { socket: os.socket_t, buf: [*]const u8, len: u32, + flags: u32 = 0, }, timeout: struct { expires: u64, @@ -571,6 +572,7 @@ pub fn send( completion: *Completion, socket: os.socket_t, buffer: []const u8, + flags: u32, ) void { self.submit( context, @@ -581,10 +583,11 @@ pub fn send( .socket = socket, .buf = buffer.ptr, .len = @intCast(u32, buffer_limit(buffer.len)), + .flags = flags, }, struct { fn doOperation(op: anytype) SendError!usize { - return os.send(op.socket, op.buf[0..op.len], 0); + return os.send(op.socket, op.buf[0..op.len], op.flags); } }, ); |