diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-15 16:18:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 16:18:36 +0100 |
commit | e025b43060e7d9841dfdc7c9bfca93c7d99241b4 (patch) | |
tree | 46c6e4b9b94116446c6e316799d10db61103bf07 /pkg/api/handlers/utils/handler.go | |
parent | d914cc231a0b1b27f2f29dabc58bcb1b88e12822 (diff) | |
parent | d8d42512c15b32a9013938018cdc0f441561944e (diff) | |
download | podman-e025b43060e7d9841dfdc7c9bfca93c7d99241b4.tar.gz podman-e025b43060e7d9841dfdc7c9bfca93c7d99241b4.tar.bz2 podman-e025b43060e7d9841dfdc7c9bfca93c7d99241b4.zip |
Merge pull request #4872 from vrothberg/v2-stats
v2 api: stats improvements
Diffstat (limited to 'pkg/api/handlers/utils/handler.go')
-rw-r--r-- | pkg/api/handlers/utils/handler.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/utils/handler.go b/pkg/api/handlers/utils/handler.go index 8c2110f97..65698bfd3 100644 --- a/pkg/api/handlers/utils/handler.go +++ b/pkg/api/handlers/utils/handler.go @@ -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) |