all repos — honk @ 3f2f879575a940207086d49f49d0bf4f620b747e

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 10:41:38 +0200
commit

3f2f879575a940207086d49f49d0bf4f620b747e

parent

e71f1f768f4c0aae99ee368d2565c6cd63b35277

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

jump to
M masto_util.gomasto_util.go

@@ -40,8 +40,8 @@ http.Error(rw, fmt.Sprintf("%s: bad junk", path), http.StatusBadRequest)

} func goodjunk(rw http.ResponseWriter, j junk.Junk) { - rw.WriteHeader(http.StatusOK) rw.Header().Set("Content-Type", "application/json; charset=utf-8") + rw.WriteHeader(http.StatusOK) rw.Write(j.ToBytes()) }