mirror of
https://code.dumpstack.io/tools/wi.git
synced 2025-01-05 03:33:32 +02:00
Encode spaces to %20 for explicit query
This commit is contained in:
parent
4a4b04e12e
commit
37ae632189
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -34,7 +34,8 @@ var (
|
|||
func cmd_url(db *sql.DB, url string) {
|
||||
client := &http.Client{}
|
||||
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
// TODO Full url encoding
|
||||
req, err := http.NewRequest("GET", strings.Replace(url, " ", "%20", -1), nil)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue