diff --git a/v2/pkg/subscraping/sources/sitedossier/sitedossier.go b/v2/pkg/subscraping/sources/sitedossier/sitedossier.go index c91c438..eddb363 100755 --- a/v2/pkg/subscraping/sources/sitedossier/sitedossier.go +++ b/v2/pkg/subscraping/sources/sitedossier/sitedossier.go @@ -35,12 +35,14 @@ func (a *agent) enumerate(ctx context.Context, baseURL string) { if err != nil && !isnotfound { a.results <- subscraping.Result{Source: "sitedossier", Type: subscraping.Error, Error: err} a.session.DiscardHTTPResponse(resp) + return } body, err := ioutil.ReadAll(resp.Body) if err != nil { a.results <- subscraping.Result{Source: "sitedossier", Type: subscraping.Error, Error: err} resp.Body.Close() + return } resp.Body.Close()