Merge branch 'bugfix-engine-rework' into enumeration-progressbar-next

dev
Manuel Bua 2020-07-25 22:47:32 +02:00
commit c967997a5a
2 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,11 @@ func (e *HTTPExecuter) ExecuteHTTP(p *progress.Progress, URL string) (result Res
result.Extractions = make(map[string]interface{})
dynamicvalues := make(map[string]interface{})
// verify if the URL is already being processed
if e.bulkHttpRequest.HasGenerator(URL) {
return
}
remaining := e.template.GetHTTPRequestsCount()
e.bulkHttpRequest.CreateGenerator(URL)

View File

@ -128,6 +128,10 @@ func (r *BulkHTTPRequest) CreateGenerator(URL string) {
r.gsfm.Add(URL)
}
func (r *BulkHTTPRequest) HasGenerator(URL string) bool {
return r.gsfm.Has(URL)
}
func (r *BulkHTTPRequest) ReadOne(URL string) {
r.gsfm.ReadOne(URL)
}