all repos — honk @ 1d1b066518c7e2484f72c92e57a873b61b0ae770

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Tue, 26 Sep 2023 20:42:13 +0300
commit

1d1b066518c7e2484f72c92e57a873b61b0ae770

parent

dffa7ad703ba1436a019f3bcd99ff88d9e05a383

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

jump to
M masto.gomasto.go

@@ -55,7 +55,7 @@ // https://docs.joinmastodon.org/methods/oauth/#authorize

func oauthorize(rw http.ResponseWriter, r *http.Request) { nrw := NotResponseWriter{} login.LoginFunc(nrw, r) - dlog.Println("got code!", nrw.auth) + 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