diff --git a/capture/capture.go b/capture/capture.go index c6dfd4f..d573fb0 100644 --- a/capture/capture.go +++ b/capture/capture.go @@ -357,8 +357,9 @@ func http1EndHint(m *tcp.Message) bool { if m.MissingChunk() { return false } - - return proto.HasFullPayload(m, m.PacketData()...) + + req, res := http1StartHint(m.Packets()[0]) + return proto.HasFullPayload(m, m.PacketData()...) && (req || res) } func (l *Listener) read() {