refactor http packet capture

This commit is contained in:
soypat
2025-06-03 23:48:51 -03:00
parent 2d71907241
commit 7c5b427b14
4 changed files with 58 additions and 17 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func doHTTP(conn *internet.TCPConn, hdr *httpraw.Header) error {
return nil // No data yet.
}
fmt.Println("state is established; check request and send response")
_, err := hdr.ReadFromLimited(conn, hdr.Free())
_, err := hdr.ReadFromLimited(conn, hdr.BufferFree())
if err != nil {
return err
}