all repos — honk @ c8a4ee4a52ec60147b2bac86ccca38020ba5bc5f

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Mon, 13 Mar 2023 23:48:33 +0530
commit

c8a4ee4a52ec60147b2bac86ccca38020ba5bc5f

parent

a9f7da5ff199ae65fb3be7d471faa54e165e87f2

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M masto.gomasto.go

@@ -14,7 +14,10 @@ }

// https://docs.joinmastodon.org/methods/apps/#create func apiapps(rw http.ResponseWriter, r *http.Request) { - dlog.Println(r.Form.Encode()) + if err := r.ParseForm(); err != nil { + http.Error(rw, "invalid input", http.StatusBadRequest) + return + } clientName := r.Form.Get("client_name") redirectUris := r.Form.Get("redirect_uris") scopes := r.Form.Get("scopes")