Browse code

Replace API version comparison by a `if`…

… as we don't know for sure what API version it will be at that time.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
(cherry picked from commit 0f9d22cd66353b3d14dd4a08084f88778fb69480)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

Vincent Demeester authored on 2017/03/15 18:46:06
Showing 1 changed files
... ...
@@ -253,9 +253,9 @@ func (s *imageRouter) getImagesJSON(ctx context.Context, w http.ResponseWriter,
253 253
 		return err
254 254
 	}
255 255
 
256
-	version := httputils.VersionFromContext(ctx)
257 256
 	filterParam := r.Form.Get("filter")
258
-	if versions.LessThanOrEqualTo(version, "1.28") && filterParam != "" {
257
+	// FIXME(vdemeester) This has been deprecated in 1.13, and is target for removal for v17.12
258
+	if filterParam != "" {
259 259
 		imageFilters.Add("reference", filterParam)
260 260
 	}
261 261