mirror of https://github.com/docker/docs.git
*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:
parent
0809f649d3
commit
90dde9beab
3
api.go
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 {
|
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.
|
// FIXME: "remote" is not a clear variable name.
|
||||||
remote := r.FormValue("t")
|
remote := r.FormValue("t")
|
||||||
tag := ""
|
tag := ""
|
||||||
|
|
Loading…
Reference in New Issue