working commit
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func (cli *Client) ManifestExists(ctx context.Context, rawrepo, tag string) (bool, string, int64, string, error) {
|
||||
func (cli *Client) ManifestExists(ctx context.Context, rawrepo string) (bool, string, int64, string, error) {
|
||||
var err error
|
||||
var exist bool
|
||||
var mime string
|
||||
@@ -18,7 +18,7 @@ func (cli *Client) ManifestExists(ctx context.Context, rawrepo, tag string) (boo
|
||||
if err != nil {
|
||||
return exist, mime, size, csum, err
|
||||
}
|
||||
uri := ref.Manifest(tag)
|
||||
uri := ref.ManifestEP()
|
||||
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodHead, uri, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user