mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 22:23:02 +00:00
small change to logic
This commit is contained in:
parent
d997539e87
commit
fb816b9973
@ -132,16 +132,16 @@ 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)
|
||||
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)
|
||||
continue
|
||||
} else {
|
||||
// If the request was built correctly then execute it
|
||||
err = e.handleHTTP(p, URL, httpRequest, dynamicvalues, &result)
|
||||
if err != nil {
|
||||
result.Error = errors.Wrap(err, "could not handle http request")
|
||||
p.Drop(remaining)
|
||||
}
|
||||
}
|
||||
|
||||
// move always forward with requests
|
||||
e.bulkHttpRequest.Increment(URL)
|
||||
p.Update()
|
||||
remaining--
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user