Signed-off-by: Victor Vieux <vieux@docker.com>
Victor Vieux authored on 2016/02/03 07:16:15... | ... |
@@ -147,7 +147,7 @@ func versionMiddleware(handler httputils.APIFunc) httputils.APIFunc { |
147 | 147 |
return errors.ErrorCodeNewerClientVersion.WithArgs(apiVersion, api.DefaultVersion) |
148 | 148 |
} |
149 | 149 |
if apiVersion.LessThan(api.MinVersion) { |
150 |
- return errors.ErrorCodeOldClientVersion.WithArgs(apiVersion, api.DefaultVersion) |
|
150 |
+ return errors.ErrorCodeOldClientVersion.WithArgs(apiVersion, api.MinVersion) |
|
151 | 151 |
} |
152 | 152 |
|
153 | 153 |
w.Header().Set("Server", "Docker/"+dockerversion.Version+" ("+runtime.GOOS+")") |