summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-21 16:26:08 +0000
committerGitHub <noreply@github.com>2022-06-21 16:26:08 +0000
commit588d8ec371202b5f6101c11f4c3e2952c2843d85 (patch)
treed70723be0e4054ae353f665b21f3b78d0a95350f /pkg/api/handlers
parent79eb467325dc8ff50fecce1f69b17181168fb945 (diff)
parentbb5bd09eade239dda07332a887d0fafb6e29ee87 (diff)
downloadpodman-588d8ec371202b5f6101c11f4c3e2952c2843d85.tar.gz
podman-588d8ec371202b5f6101c11f4c3e2952c2843d85.tar.bz2
podman-588d8ec371202b5f6101c11f4c3e2952c2843d85.zip
Merge pull request #14662 from Luap99/api-json
API: containers/json always set application/json content type
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/libpod/containers.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go
index 6b5bee403..deddcaf93 100644
--- a/pkg/api/handlers/libpod/containers.go
+++ b/pkg/api/handlers/libpod/containers.go
@@ -115,10 +115,6 @@ func ListContainers(w http.ResponseWriter, r *http.Request) {
utils.InternalServerError(w, err)
return
}
- if len(pss) == 0 {
- utils.WriteResponse(w, http.StatusOK, "[]")
- return
- }
utils.WriteResponse(w, http.StatusOK, pss)
}