mirror of
https://code.dumpstack.io/tools/wi.git
synced 2024-11-22 19:13:01 +00:00
Encode spaces to %20 for explicit query
This commit is contained in:
parent
4a4b04e12e
commit
37ae632189
3
main.go
3
main.go
@ -34,7 +34,8 @@ var (
|
|||||||
func cmd_url(db *sql.DB, url string) {
|
func cmd_url(db *sql.DB, url string) {
|
||||||
client := &http.Client{}
|
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 {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user