summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-03 15:30:39 -0500
committerGitHub <noreply@github.com>2021-02-03 15:30:39 -0500
commit4e1bcf30f3a519490f58d66bc0aef16676f61ae8 (patch)
tree1c385d7d3165aac114aa1d812ecd06cadba89bf6 /pkg/api/handlers/compat
parent4a1614e73feee048941296716dd85ceb6d15417d (diff)
parent7e4d696d949f4132c17a9c66c9f24e65b184be4c (diff)
downloadpodman-4e1bcf30f3a519490f58d66bc0aef16676f61ae8.tar.gz
podman-4e1bcf30f3a519490f58d66bc0aef16676f61ae8.tar.bz2
podman-4e1bcf30f3a519490f58d66bc0aef16676f61ae8.zip
Merge pull request #9188 from jwhonce/issues/8865
Report StatusConflict on Pod opt partial failures
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/resize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/resize.go b/pkg/api/handlers/compat/resize.go
index cc8c6ef0a..a769ae1b5 100644
--- a/pkg/api/handlers/compat/resize.go
+++ b/pkg/api/handlers/compat/resize.go
@@ -84,5 +84,5 @@ func ResizeTTY(w http.ResponseWriter, r *http.Request) {
// reasons.
status = http.StatusCreated
}
- utils.WriteResponse(w, status, "")
+ w.WriteHeader(status)
}