all repos — honk @ a3a77e1999fa2fc0b8b0d909c49a7e53dc60c7be

my fork of honk

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

a3a77e1999fa2fc0b8b0d909c49a7e53dc60c7be

parent

a0ac42c876e0dd26117dac1b844e2d88239436a5

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

jump to
M masto.gomasto.go

@@ -1,6 +1,7 @@

package main import ( + "bytes" "crypto/rand" "fmt" "net/http"

@@ -11,7 +12,7 @@ "humungus.tedunangst.com/r/webs/login"

) type NotResponseWriter struct { - body []byte + body bytes.Buffer header http.Header }

@@ -20,8 +21,7 @@ return w.header

} func (w NotResponseWriter) Write(b []byte) (int, error) { - w.body = b - return 0, nil + return w.body.Write(b) } func (w NotResponseWriter) WriteHeader(statusCode int) {}