diff --git a/main b/main index b9fa09f..47c9e26 100755 Binary files a/main and b/main differ diff --git a/main.go b/main.go index bc7ee15..490175a 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { uid, _ := uuid.NewV4() uuid := "html2pic-" + uid.String() - url, html := r.FormValue("url"), r.FormValue("html") + url, html := r.PostFormValue("url"), r.PostFormValue("html") tempFile := *tempDir + "/" + uuid + ".html" if html != "" { ioutil.WriteFile(tempFile, []byte("
"+html+""), os.ModeAppend)