fix: post data

This commit is contained in:
Jon Lundy 2021-08-26 13:33:52 -06:00
parent 553682d74f
commit 19b0a80f57
No known key found for this signature in database
GPG Key ID: 13022278CED7D8EC

View File

@ -310,7 +310,7 @@ func (srv *server) handleHTTP(rw http.ResponseWriter, r *http.Request) {
} }
if r.Method == http.MethodPost { if r.Method == http.MethodPost {
pubkey, _, _, _, err := ssh.ParseAuthorizedKey([]byte(r.FormValue("pub"))) pubkey, _, _, _, err := ssh.ParseAuthorizedKey([]byte(r.PostFormValue("pub")))
if err != nil { if err != nil {
rw.WriteHeader(400) rw.WriteHeader(400)
fmt.Fprintln(rw, "ERR READING KEY") fmt.Fprintln(rw, "ERR READING KEY")