| ... | @@ -1114,8 +1114,8 @@ pub const Session = struct { | ... | @@ -1114,8 +1114,8 @@ pub const Session = struct { |
| 1114 | } | 1114 | } |
| 1115 | const buf = limit.slice(try w.writableSliceGreedy(1)); | 1115 | const buf = limit.slice(try w.writableSliceGreedy(1)); |
| 1116 | const n = @min(buf.len, fs.remaining_len); | 1116 | const n = @min(buf.len, fs.remaining_len); |
| 1117 | @memcpy(buf[0..n], input.buffered()[0..n]); | 1117 | try input.readSliceAll(buf[0..n]); |
| 1118 | input.toss(n); | 1118 | w.advance(n); |
| 1119 | fs.remaining_len -= n; | 1119 | fs.remaining_len -= n; |
| 1120 | return n; | 1120 | return n; |
| 1121 | } | 1121 | } |