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:
parent
6eeb36cbd5
commit
6164ad35b8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user