aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-01-10 10:26:43 -0600
committerbaude <bbaude@redhat.com>2020-01-10 13:06:26 -0600
commit986feef2e80cfaed7cbce0df4fd5d619bcffefd7 (patch)
tree61134dad4b2efdaa65dee6e7206e5ce20080302c /pkg
parentc3956b1974ce545446a443488497dfbc98dda1a8 (diff)
downloadpodman-986feef2e80cfaed7cbce0df4fd5d619bcffefd7.tar.gz
podman-986feef2e80cfaed7cbce0df4fd5d619bcffefd7.tar.bz2
podman-986feef2e80cfaed7cbce0df4fd5d619bcffefd7.zip
fix e2e test failure
it is possible for layers.names to be nil and we must account for that. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/images_build.go6
1 files changed, 0 insertions, 6 deletions
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")