Actually show Node ID in QR (fixes #471)

This commit is contained in:
Jakob Borg
2014-08-04 22:53:37 +02:00
parent c9edd31993
commit f288e00c37
3 changed files with 4 additions and 4 deletions

View File

@@ -526,8 +526,8 @@ func restPostUpgrade(w http.ResponseWriter, r *http.Request) {
}
func getQR(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
text := r.FormValue("text")
var qs = r.URL.Query()
var text = qs.Get("text")
code, err := qr.Encode(text, qr.M)
if err != nil {
http.Error(w, "Invalid", 500)