diff options
-rw-r--r-- | pkg/api/api0/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go index f7b787c..2c154cb 100644 --- a/pkg/api/api0/api.go +++ b/pkg/api/api0/api.go @@ -122,6 +122,7 @@ func respJSON(w http.ResponseWriter, r *http.Request, status int, obj any) { if err != nil { panic(err) } + buf = append(buf, '\n') w.Header().Set("Content-Type", "application/json; charset=utf-8") w.Header().Set("Content-Length", strconv.Itoa(len(buf))) w.WriteHeader(status) |