*Builder: warn pre-1.3 clients that they need to upgrade. This breaks semver, but our API should still be in 0.X versioning, in which case semver allows breaking changes.

This commit is contained in:
Solomon Hykes 2013-06-19 14:59:28 -07:00
parent 0809f649d3
commit 90dde9beab
1 changed files with 3 additions and 0 deletions

3
api.go
View File

@ -715,6 +715,9 @@ func postImagesGetCache(srv *Server, version float64, w http.ResponseWriter, r *
}
func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
if version < 1.3 {
return fmt.Errorf("Multipart upload for build is no longer supported. Please upgrade your docker client.")
}
// FIXME: "remote" is not a clear variable name.
remote := r.FormValue("t")
tag := ""