mirror of
https://github.com/OJ/gobuster.git
synced 2024-06-10 21:16:03 +02:00
fix increment error
This commit is contained in:
parent
d8be724b99
commit
7b411354b1
|
@ -111,7 +111,6 @@ func (g *Gobuster) ClearProgress() {
|
|||
// GetRequest issues a GET request to the target and returns
|
||||
// the status code, length and an error
|
||||
func (g *Gobuster) GetRequest(url string) (*int, *int64, error) {
|
||||
g.incrementRequests()
|
||||
return g.http.makeRequest(url, g.Opts.Cookies)
|
||||
}
|
||||
|
||||
|
@ -126,6 +125,7 @@ func (g *Gobuster) worker(wordChan <-chan string, wg *sync.WaitGroup) {
|
|||
if !ok {
|
||||
return
|
||||
}
|
||||
g.incrementRequests()
|
||||
// Mode-specific processing
|
||||
res, err := g.plugin.Process(g, word)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue