Don't quit http requests on an error

dev
Ice3man543 2020-08-23 23:30:16 +05:30
parent 10a084d0c1
commit d997539e87
1 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import (
"bufio"
"crypto/tls"
"fmt"
"github.com/logrusorgru/aurora"
"io"
"io/ioutil"
"net/http"
@ -17,6 +16,8 @@ import (
"sync"
"time"
"github.com/logrusorgru/aurora"
"github.com/pkg/errors"
"github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/v2/internal/progress"
@ -131,14 +132,14 @@ func (e *HTTPExecuter) ExecuteHTTP(p progress.IProgress, URL string) (result Res
if err != nil {
result.Error = errors.Wrap(err, "could not build http request")
p.Drop(remaining)
return
continue
}
err = e.handleHTTP(p, URL, httpRequest, dynamicvalues, &result)
if err != nil {
result.Error = errors.Wrap(err, "could not handle http request")
p.Drop(remaining)
return
continue
}
e.bulkHttpRequest.Increment(URL)