u
Anirudh Oppiliappan x@icyphox.sh
Tue, 26 Sep 2023 21:24:57 +0300
2 files changed,
2 insertions(+),
2 deletions(-)
M
masto.go
→
masto.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.go
→
masto_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