Skip to content

Commit

Permalink
Merge pull request #9347 from edigaryev/fix-superfluous-writeheader
Browse files Browse the repository at this point in the history
Fix superfluous response.WriteHeader call in WaitContainerLibpod()
  • Loading branch information
openshift-merge-robot authored Feb 13, 2021
2 parents 87b2722 + 2c31f38 commit 9d57aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/handlers/utils/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9d57aa7

Please sign in to comment.