Fix a bug before it appears
This commit is contained in:
@@ -129,6 +129,7 @@ pub fn process(conn: std.net.Server.Connection) !void {
|
||||
if (leftover_bytes > 0) {
|
||||
bytes_read = leftover_bytes;
|
||||
chars = read_buffer[0..leftover_bytes];
|
||||
leftover_bytes = 0;
|
||||
} else {
|
||||
bytes_read = try conn.stream.read(read_buffer[total_bytes_read..]);
|
||||
chars = read_buffer[total_bytes_read .. total_bytes_read + bytes_read];
|
||||
|
||||
Reference in New Issue
Block a user