diff options
author | Jhon Honce <jhonce@redhat.com> | 2022-03-23 10:19:36 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2022-03-23 10:19:36 -0700 |
commit | a6504963b327b83b5ba1e56290d9d0afbe505bfb (patch) | |
tree | 7fffcdf167757c2ce8b4cc37f1e22b2689554c1d /pkg/api/handlers | |
parent | f049cba47c31d31a4a8ed9a9180f0e847be3411c (diff) | |
download | podman-a6504963b327b83b5ba1e56290d9d0afbe505bfb.tar.gz podman-a6504963b327b83b5ba1e56290d9d0afbe505bfb.tar.bz2 podman-a6504963b327b83b5ba1e56290d9d0afbe505bfb.zip |
Fix manifest 4.0 endpoints
[NO NEW TESTS NEEDED]
* Branch forced 4.0 only endpoints, which broke bindings
* Fix lint error, in new code
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/libpod/manifests.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go index 250736579..ad662f32c 100644 --- a/pkg/api/handlers/libpod/manifests.go +++ b/pkg/api/handlers/libpod/manifests.go @@ -401,7 +401,7 @@ func ManifestModify(w http.ResponseWriter, r *http.Request) { case len(report.Errors) > 0 && len(report.Images) > 0: statusCode = http.StatusConflict case len(report.Errors) > 0: - statusCode = http.StatusInternalServerError + statusCode = http.StatusBadRequest } utils.WriteResponse(w, statusCode, report) } |