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