u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 11:32:29 +0200
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
masto.go
→
masto.go
@@ -78,9 +78,12 @@ rw.WriteHeader(http.StatusInternalServerError)
return } + uri := fmt.Sprintf("%s?code=%s", redirectURI, nrw.auth) + log.Println("redirecting to", redirectURI+"?code="+nrw.auth) rw.Header().Set("Content-Type", "") - http.Redirect(rw, r, redirectURI+"?code="+nrw.auth, 302) + // http.Redirect(rw, r, redirectURI+"?code="+nrw.auth, 302) + rw.Header().Set("Location", uri) } // https://docs.joinmastodon.org/methods/instance/#v2