summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/manifests.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-27 10:56:43 -0400
committerGitHub <noreply@github.com>2022-04-27 10:56:43 -0400
commit9133a6d044c0ab525cc087ca12c1bbc005f5f325 (patch)
treecae0d851af375e4523097cb4f8510b61f1a70339 /pkg/api/handlers/libpod/manifests.go
parente4be261755f24e0f12906571b91a1165fea8016e (diff)
parent3bcfd256b3253d248cf458509c05c7940f7e58cb (diff)
downloadpodman-9133a6d044c0ab525cc087ca12c1bbc005f5f325.tar.gz
podman-9133a6d044c0ab525cc087ca12c1bbc005f5f325.tar.bz2
podman-9133a6d044c0ab525cc087ca12c1bbc005f5f325.zip
Merge pull request #13698 from Luap99/version
Bump version to v4.1.0-dev
Diffstat (limited to 'pkg/api/handlers/libpod/manifests.go')
-rw-r--r--pkg/api/handlers/libpod/manifests.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go
index 15d4b9f89..8dc7c57d5 100644
--- a/pkg/api/handlers/libpod/manifests.go
+++ b/pkg/api/handlers/libpod/manifests.go
@@ -7,6 +7,7 @@ import (
"io/ioutil"
"net/http"
"net/url"
+ "strconv"
"strings"
"github.com/containers/image/v5/docker/reference"
@@ -372,6 +373,15 @@ func ManifestModify(w http.ResponseWriter, r *http.Request) {
return
}
+ if tlsVerify, ok := r.URL.Query()["tlsVerify"]; ok {
+ tls, err := strconv.ParseBool(tlsVerify[len(tlsVerify)-1])
+ if err != nil {
+ utils.Error(w, http.StatusBadRequest, fmt.Errorf("tlsVerify param is not a bool: %w", err))
+ return
+ }
+ body.SkipTLSVerify = types.NewOptionalBool(!tls)
+ }
+
authconf, authfile, err := auth.GetCredentials(r)
if err != nil {
utils.Error(w, http.StatusBadRequest, err)