From e8959dff864dd3c335ac7c8c45d47ca7b94973ea Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 25 Jul 2018 23:34:52 +0200 Subject: [PATCH] fix http sniffer --- common/protocol/http/sniff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/http/sniff.go b/common/protocol/http/sniff.go index f15e6bd25..70432ab53 100644 --- a/common/protocol/http/sniff.go +++ b/common/protocol/http/sniff.go @@ -68,7 +68,7 @@ func SniffHTTP(b []byte) (*SniffHeader, error) { for i := 1; i < len(headers); i++ { header := headers[i] if len(header) == 0 { - return nil, core.ErrNoClue + break } parts := bytes.SplitN(header, []byte{':'}, 2) if len(parts) != 2 {