浏览代码

Updated "POST /containers/create" to return the right Content-Type.

David Sissitka 12 年之前
父节点
当前提交
f6b56e996d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api.go

+ 2 - 1
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
 }