From 6eae9b0e2956b4403ff5602e81a44488ca4e6f8a Mon Sep 17 00:00:00 2001 From: David Sissitka Date: Thu, 29 Aug 2013 09:14:14 -0700 Subject: [PATCH] Updated "POST /containers/create" to return the right Content-Type. Upstream-commit: f6b56e996d6b721cb95c1a19b1df061900fb8fd1 Component: engine --- components/engine/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/engine/api.go b/components/engine/api.go index 9e094231b5..af3f2e1482 100644 --- a/components/engine/api.go +++ b/components/engine/api.go @@ -547,8 +547,9 @@ func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r if err != nil { return err } + w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusCreated) - writeJSON(w, b) + w.Write(b) return nil }