mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix error message on version too low
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
4a6436223e
commit
c7725242b9
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ func versionMiddleware(handler httputils.APIFunc) httputils.APIFunc {
|
|||
return errors.ErrorCodeNewerClientVersion.WithArgs(apiVersion, api.DefaultVersion)
|
||||
}
|
||||
if apiVersion.LessThan(api.MinVersion) {
|
||||
return errors.ErrorCodeOldClientVersion.WithArgs(apiVersion, api.DefaultVersion)
|
||||
return errors.ErrorCodeOldClientVersion.WithArgs(apiVersion, api.MinVersion)
|
||||
}
|
||||
|
||||
w.Header().Set("Server", "Docker/"+dockerversion.Version+" ("+runtime.GOOS+")")
|
||||
|
|
Loading…
Reference in a new issue