Update XHTTP

This commit is contained in:
Shtorm
2025-12-11 02:46:57 +03:00
parent 92beba066b
commit 0f38dbba4c
9 changed files with 94 additions and 43 deletions

View File

@@ -144,7 +144,7 @@ func Compact(mb MultiBuffer) MultiBuffer {
for i := 1; i < len(mb); i++ {
curr := mb[i]
if last.Len()+curr.Len() > Size {
if curr.Len() > last.Available() {
mb2 = append(mb2, last)
last = curr
} else {