Modified thresholds on autocalibrate filter to > 0 instead of > 1 (#80)

This commit is contained in:
Daniel Lawson 2019-10-15 07:35:20 -05:00 committed by Joona Hoikkala
parent 081e40f97e
commit adec6a9074

View file

@ -62,11 +62,11 @@ func calibrateFilters(j *ffuf.Job, responses []ffuf.Response) {
sizeCalib := make([]string, 0)
wordCalib := make([]string, 0)
for _, r := range responses {
if r.ContentLength > 1 {
if r.ContentLength > 0 {
// Only add if we have an actual size of responses
sizeCalib = append(sizeCalib, strconv.FormatInt(r.ContentLength, 10))
}
if r.ContentWords > 1 {
if r.ContentWords > 0 {
// Only add if we have an actual word length of response
wordCalib = append(wordCalib, strconv.FormatInt(r.ContentWords, 10))
}