summaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/distribution/registry/client
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2022-02-08 12:09:28 +0000
committerGitHub <noreply@github.com>2022-02-08 12:09:28 +0000
commit5bcd9134ff0c2e3af740b388da2d91c70dd7456a (patch)
treeda911e481c93441cab97a20cfbab4318b87acded /vendor/github.com/docker/distribution/registry/client
parent46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3 (diff)
downloadpodman-5bcd9134ff0c2e3af740b388da2d91c70dd7456a.tar.gz
podman-5bcd9134ff0c2e3af740b388da2d91c70dd7456a.tar.bz2
podman-5bcd9134ff0c2e3af740b388da2d91c70dd7456a.zip
Bump github.com/docker/distribution
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.7.1+incompatible to 2.8.0+incompatible. - [Release notes](https://github.com/docker/distribution/releases) - [Commits](https://github.com/docker/distribution/compare/v2.7.1...v2.8.0) --- updated-dependencies: - dependency-name: github.com/docker/distribution dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/docker/distribution/registry/client')
-rw-r--r--vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go4
-rw-r--r--vendor/github.com/docker/distribution/registry/client/repository.go9
2 files changed, 9 insertions, 4 deletions
diff --git a/vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go b/vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go
index 6e3f1ccc4..fe238210c 100644
--- a/vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go
+++ b/vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go
@@ -117,8 +117,8 @@ func init() {
var t octetType
isCtl := c <= 31 || c == 127
isChar := 0 <= c && c <= 127
- isSeparator := strings.IndexRune(" \t\"(),/:;<=>?@[]\\{}", rune(c)) >= 0
- if strings.IndexRune(" \t\r\n", rune(c)) >= 0 {
+ isSeparator := strings.ContainsRune(" \t\"(),/:;<=>?@[]\\{}", rune(c))
+ if strings.ContainsRune(" \t\r\n", rune(c)) {
t |= isSpace
}
if isChar && !isCtl && !isSeparator {
diff --git a/vendor/github.com/docker/distribution/registry/client/repository.go b/vendor/github.com/docker/distribution/registry/client/repository.go
index aa442e654..3e2ae66d3 100644
--- a/vendor/github.com/docker/distribution/registry/client/repository.go
+++ b/vendor/github.com/docker/distribution/registry/client/repository.go
@@ -16,7 +16,7 @@ import (
"github.com/docker/distribution"
"github.com/docker/distribution/reference"
- "github.com/docker/distribution/registry/api/v2"
+ v2 "github.com/docker/distribution/registry/api/v2"
"github.com/docker/distribution/registry/client/transport"
"github.com/docker/distribution/registry/storage/cache"
"github.com/docker/distribution/registry/storage/cache/memory"
@@ -736,7 +736,12 @@ func (bs *blobs) Create(ctx context.Context, options ...distribution.BlobCreateO
return nil, err
}
- resp, err := bs.client.Post(u, "", nil)
+ req, err := http.NewRequest("POST", u, nil)
+ if err != nil {
+ return nil, err
+ }
+
+ resp, err := bs.client.Do(req)
if err != nil {
return nil, err
}