*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
Родитель 0809f649d3
Коммит 90dde9beab
1 изменённых файлов: 3 добавлений и 0 удалений

3
api.go
Просмотреть файл

@ -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 := ""