From f6b56e996d6b721cb95c1a19b1df061900fb8fd1 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. --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index 9e094231b..af3f2e148 100644 --- a/api.go +++ b/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 }