Skip to content

Commit

Permalink
parsing url
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Aug 18, 2023
1 parent 86d4018 commit 8020bc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/fuzzer/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"os"
"sync"

Expand All @@ -22,8 +23,12 @@ func checkError(err error) {

func Get(Mu *sync.Mutex, domain, path string, progress float32, verbose bool) {
urjoin := "http://" + domain + path
url, err := url.Parse(urjoin)
if err != nil {
log.Error().Err(err).Msg("")
}

get, err := http.NewRequest("GET", urjoin, nil)
get, err := http.NewRequest("GET", url.String(), nil)
if err != nil {
log.Error().Err(err).Msg("")
return
Expand Down

0 comments on commit 8020bc7

Please sign in to comment.