From 57db05cb1031f6a01e1568ceb16434e5809aef81 Mon Sep 17 00:00:00 2001 From: Kanstantsin Shautsou Date: Wed, 17 Aug 2016 01:36:37 +0300 Subject: [PATCH] Don't confuse with empty body It fails with any (even empty) json request body. Signed-off-by: Kanstantsin Shautsou --- api/server/router/container/container_routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/router/container/container_routes.go b/api/server/router/container/container_routes.go index 977ce2522d..a03ef9528f 100644 --- a/api/server/router/container/container_routes.go +++ b/api/server/router/container/container_routes.go @@ -137,7 +137,7 @@ func (s *containerRouter) postContainersStart(ctx context.Context, w http.Respon // A non-nil json object is at least 7 characters. if r.ContentLength > 7 || r.ContentLength == -1 { if versions.GreaterThanOrEqualTo(version, "1.24") { - return validationError{fmt.Errorf("starting container with HostConfig was deprecated since v1.10 and removed in v1.12")} + return validationError{fmt.Errorf("starting container with non-empty request body was deprecated since v1.10 and removed in v1.12")} } if err := httputils.CheckForJSON(r); err != nil {