u
Anirudh Oppiliappan x@icyphox.sh
Mon, 13 Mar 2023 23:48:33 +0530
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
masto.go
→
masto.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")