all repos — honk @ 4eb60a87c245276636975a4fa09d0f270fa96b0c

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 11:32:29 +0200
commit

4eb60a87c245276636975a4fa09d0f270fa96b0c

parent

9d02c2482cd2755169c8d7e3ca7c7113a71d0fff

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

jump to
M masto.gomasto.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