fixed empty title in json

This commit is contained in:
Mzack9999 2020-05-29 22:20:15 +02:00
parent bcd2063cdc
commit df11fde4aa

View File

@ -207,9 +207,8 @@ retry:
builder.WriteString(fmt.Sprintf(" [%d]", resp.ContentLength))
}
title := ""
title := httpx.ExtractTitle(resp)
if scanopts.OutputTitle {
title = httpx.ExtractTitle(resp)
builder.WriteString(fmt.Sprintf(" [%s]", title))
}