Add trailing newline to stats response
This was just an annoyance when working with the API from a terminal. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -48,6 +48,7 @@ func HandlePodStatsSummary(h PodStatsSummaryHandlerFunc) http.HandlerFunc {
|
||||
if _, err := w.Write(b); err != nil {
|
||||
return errors.Wrap(err, "could not write to client")
|
||||
}
|
||||
_, _ = w.Write([]byte("\n"))
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user