Skip to content

Commit

Permalink
Fixed lagging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pelaohxc committed Jul 15, 2020
1 parent 69e751e commit ed08fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func main() {
go func(i int, headers arrayFlags) {
defer wg.Done()
url := urls[i]
fmt.Printf("[+] Checking %s\n", url)
data, err := fetchURL(url ,headers)
if err != nil{
return
Expand Down Expand Up @@ -66,6 +65,7 @@ func fetchURL(url string, headers arrayFlags) ([]byte, error) {
req.Header.Add(h[0], h[1])
}

fmt.Printf("[+] Checking %s\n", url)
resp, err := http.DefaultClient.Do(req)
if err != nil{
return nil, err
Expand Down

0 comments on commit ed08fc2

Please sign in to comment.