mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Merge pull request #9347 from edigaryev/fix-superfluous-writeheader
Fix superfluous response.WriteHeader call in WaitContainerLibpod()
This commit is contained in:
@ -105,6 +105,7 @@ func WaitContainerLibpod(w http.ResponseWriter, r *http.Request) {
|
|||||||
query := waitQueryLibpod{}
|
query := waitQueryLibpod{}
|
||||||
if err := decoder.Decode(&query, r.URL.Query()); err != nil {
|
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()))
|
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 {
|
if _, found := r.URL.Query()["interval"]; found {
|
||||||
|
|||||||
Reference in New Issue
Block a user