From 986feef2e80cfaed7cbce0df4fd5d619bcffefd7 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 10 Jan 2020 10:26:43 -0600 Subject: fix e2e test failure it is possible for layers.names to be nil and we must account for that. Signed-off-by: baude --- pkg/api/handlers/images_build.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pkg/api/handlers') diff --git a/pkg/api/handlers/images_build.go b/pkg/api/handlers/images_build.go index 0ea480315..c7c746392 100644 --- a/pkg/api/handlers/images_build.go +++ b/pkg/api/handlers/images_build.go @@ -19,12 +19,6 @@ import ( ) func BuildImage(w http.ResponseWriter, r *http.Request) { - // contentType := r.Header.Get("Content-Type") - // if contentType != "application/x-tar" { - // Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest, errors.New("/build expects Content-Type of 'application/x-tar'")) - // return - // } - authConfigs := map[string]AuthConfig{} if hasHeader(r, "X-Registry-Config") { registryHeader := getHeader(r, "X-Registry-Config") -- cgit v1.2.3-54-g00ecf