u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 10:41:38 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
masto_util.go
→
masto_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()) }