mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
v2: stats: fix errors
Also add some comments. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -33,6 +33,7 @@ func WriteResponse(w http.ResponseWriter, code int, value interface{}) {
|
||||
}
|
||||
|
||||
func WriteJSON(w http.ResponseWriter, code int, value interface{}) {
|
||||
// FIXME: we don't need to write the header in all/some circumstances.
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(code)
|
||||
|
||||
|
Reference in New Issue
Block a user