Merge pull request #1118 from jimmyxian/fix-load-api

fix load api
This commit is contained in:
Victor Vieux
2015-08-05 10:45:53 -07:00

View File

@@ -405,6 +405,8 @@ func postImagesCreate(c *context, w http.ResponseWriter, r *http.Request) {
// POST /images/load
func postImagesLoad(c *context, w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
// call cluster to load image on every node
wf := NewWriteFlusher(w)