ing
This commit is contained in:
parent
245d807a5a
commit
add118ce9d
|
@ -45,6 +45,11 @@ func (m *ElasticSearchMatcher) Match(matchCtx *osm.MatchCtx, index int, packet *
|
|||
|
||||
str := string(packet.Bytes())
|
||||
hnb := strings.Split(str, "\r\n\r\n")
|
||||
|
||||
if nil == hnb || 2 > len(hnb) {
|
||||
return osm.NotMatchedError()
|
||||
}
|
||||
|
||||
header := hnb[0]
|
||||
body := hnb[1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user