diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-12 19:24:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 19:24:57 -0500 |
commit | 9d57aa75a5f22296b81cd37abe08660001971c4a (patch) | |
tree | 533b60a300664f296b5bcb19471b1829dd728521 | |
parent | 87b2722c457e9937ab5e8a4047da38e6887065e6 (diff) | |
parent | 2c31f383990c7288d63bec13a5a421e09a9386f0 (diff) | |
download | podman-9d57aa75a5f22296b81cd37abe08660001971c4a.tar.gz podman-9d57aa75a5f22296b81cd37abe08660001971c4a.tar.bz2 podman-9d57aa75a5f22296b81cd37abe08660001971c4a.zip |
Merge pull request #9347 from edigaryev/fix-superfluous-writeheader
Fix superfluous response.WriteHeader call in WaitContainerLibpod()
-rw-r--r-- | pkg/api/handlers/utils/containers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/utils/containers.go b/pkg/api/handlers/utils/containers.go index ba202cad0..e79def6f3 100644 --- a/pkg/api/handlers/utils/containers.go +++ b/pkg/api/handlers/utils/containers.go @@ -105,6 +105,7 @@ func WaitContainerLibpod(w http.ResponseWriter, r *http.Request) { query := waitQueryLibpod{} if err := decoder.Decode(&query, r.URL.Query()); err != nil { Error(w, "Something went wrong.", http.StatusBadRequest, errors.Wrapf(err, "failed to parse parameters for %s", r.URL.String())) + return } if _, found := r.URL.Query()["interval"]; found { |