feat: pass flows without ua

This commit is contained in:
SunBK201 2023-12-04 17:46:01 +08:00
parent 6a3b60a8ee
commit f6b904cbf5

View File

@ -211,6 +211,9 @@ func MyCopyBuffer(dst io.Writer, src io.Reader, parser *HTTPParser) {
}
} else {
printAndLog(fmt.Sprintf("[%s] Not found User-Agent", string(parser.Host())), logger, syslog.LOG_INFO)
dst.Write(buf[0:nr])
io.Copy(dst, src)
return
}
bodyLen := int(parser.ContentLength())
if bodyLen == -1 {