Merge pull request #318 from vieux/fix_status_code

add missing status codes
This commit is contained in:
Victor Vieux 2015-01-27 14:37:09 -08:00
commit 45c1efd2c5
1 changed files with 2 additions and 1 deletions

View File

@ -223,6 +223,7 @@ func postContainersCreate(c *context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
fmt.Fprintf(w, "{%q:%q}", "Id", container.Id)
return
}
@ -245,7 +246,7 @@ func deleteContainer(c *context, w http.ResponseWriter, r *http.Request) {
httpError(w, err.Error(), http.StatusInternalServerError)
return
}
w.WriteHeader(http.StatusNoContent)
}
// GET /events