all repos — honk @ 9ed70d41c1e030034784c4d7154e69e378d1568a

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Tue, 26 Sep 2023 21:24:57 +0300
commit

9ed70d41c1e030034784c4d7154e69e378d1568a

parent

1d1b066518c7e2484f72c92e57a873b61b0ae770

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M masto.gomasto.go

@@ -54,7 +54,7 @@

// https://docs.joinmastodon.org/methods/oauth/#authorize func oauthorize(rw http.ResponseWriter, r *http.Request) { nrw := NotResponseWriter{} - login.LoginFunc(nrw, r) + login.LoginFunc(&nrw, r) dlog.Println("got code!", nrw.auth, len(nrw.auth)) rw.WriteHeader(http.StatusOK) return
M masto_util.gomasto_util.go

@@ -19,7 +19,7 @@ func (w NotResponseWriter) Header() http.Header {

return w.header } -func (w *NotResponseWriter) Write(b []byte) (int, error) { +func (w NotResponseWriter) Write(b []byte) (int, error) { dlog.Println("notresponsewriter: oauth code:", string(b)) w.auth = string(b) return 0, nil