Skip to content

Commit

Permalink
Merge pull request #6 from lawzava/fix/http-support
Browse files Browse the repository at this point in the history
Fix HTTP Support
  • Loading branch information
lawzava authored Oct 26, 2020
2 parents 5f63144 + cc76a13 commit 5c1ff7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s *Scraper) Scrape(scrapedEmails *[]string) error {

c.Wait() // Wait for concurrent scrapes to finish

if scrapedEmails == nil {
if scrapedEmails == nil || len(*scrapedEmails) == 0 {
// Start the scrape on insecure url
if err := c.Visit(s.GetWebsite(false)); err != nil {
s.Log("error while visiting: ", err.Error())
Expand Down

0 comments on commit 5c1ff7f

Please sign in to comment.