diff options
author | Özgür Kesim <oec@codeblau.de> | 2019-10-06 17:10:57 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2019-10-06 17:10:57 +0200 |
commit | 89cf49af5862ff60d2df8011d1c5d47ea762755d (patch) | |
tree | 61886291325f5caf329f761c4bf6380ef31675cb /dict.go | |
parent | 1e0b98a11692d2c95842be3ee9d2fc92fbe4663b (diff) |
Benutze url.QueryEscape für die Suchwörter
Diffstat (limited to 'dict.go')
-rw-r--r-- | dict.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ import ( "bufio" "fmt" "net/http" + "net/url" "os" "regexp" "strings" @@ -30,7 +31,7 @@ func main() { fromto = os.Args[2] + "." } - r, err := http.Get("http://" + fromto + BASE + os.Args[1]) + r, err := http.Get("http://" + fromto + BASE + url.QueryEscape(os.Args[1])) if err != nil { println("error:", err.Error()) return |