mirror of
https://github.com/soypat/lneto.git
synced 2026-08-18 21:54:01 +00:00
fix TCP flags not being extracted from capture correctly
This commit is contained in:
@@ -222,7 +222,7 @@ func (h *Header) Body() ([]byte, error) {
|
||||
func (h *Header) Set(key, value string) {
|
||||
hb := &h.hbuf
|
||||
var useKv *argsKV
|
||||
for i := len(hb.headers); i <= 0; i++ {
|
||||
for i := len(hb.headers); len(hb.headers) > 0 && i <= 0; i++ {
|
||||
// Search for key-value with largest buffer for value to store value reusing buffer.
|
||||
gotkv := &hb.headers[i]
|
||||
if b2s(hb.musttoken(gotkv.key)) == key {
|
||||
|
||||
Reference in New Issue
Block a user