Merge pull request #9347 from edigaryev/fix-superfluous-writeheader

Fix superfluous response.WriteHeader call in WaitContainerLibpod()
This commit is contained in:
OpenShift Merge Robot
2021-02-12 19:24:57 -05:00
committed by GitHub

View File

@ -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 {