Add newline to json stream to pin/ls (#1893)

* - add newline to json stream

---------

Co-authored-by: Marius Burkard <m.burkard@pixcept.de>
Co-authored-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
StrathCole 2023-03-22 14:51:54 +01:00 committed by GitHub
parent 6eeb36cbd5
commit 6164ad35b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,6 +476,7 @@ func (proxy *Server) pinLsHandler(w http.ResponseWriter, r *http.Request) {
}
resBytes, _ := json.Marshal(ipinfo)
w.Write(resBytes)
w.Write([]byte("\n"))
}
wg.Wait()
if err != nil {