summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-07 10:34:22 -0500
committerGitHub <noreply@github.com>2022-02-07 10:34:22 -0500
commit46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3 (patch)
treed60b025f346fd4651283522fea65b881df4bed6f /pkg/api/handlers/compat
parent30b076b98731e87067092e45e58d826ef839003a (diff)
parent3b561a468232c18c63d98920ce2812721d853f29 (diff)
downloadpodman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.tar.gz
podman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.tar.bz2
podman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.zip
Merge pull request #13156 from flouthoc/fix-compat-build-response-header
compat: endpoint `/build` must set header `content type` as `application/json` in response header.
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/images_build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go
index cc9667202..0ebf74f98 100644
--- a/pkg/api/handlers/compat/images_build.go
+++ b/pkg/api/handlers/compat/images_build.go
@@ -605,8 +605,8 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
}
// Send headers and prime client for stream to come
- w.WriteHeader(http.StatusOK)
w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(http.StatusOK)
flush()
body := w.(io.Writer)