Skip to content

Commit

Permalink
HTTPS git push
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Jan 24, 2025
1 parent 25f9cbd commit c667443
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/backend/httpbackend/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/registrybackend/tagclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (f *tagClientFactory) Create(
return NewTagClient(config, stats)
}

const _tagquery = "http://%s/v2/%s/manifests/%s"
const _tagquery = "https://%s/v2/%s/manifests/%s"

// TagClient stats and downloads tag from registry.
type TagClient struct {
Expand Down
8 changes: 4 additions & 4 deletions lib/backend/testfs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c *Client) Stat(namespace, name string) (*core.BlobInfo, error) {
return nil, fmt.Errorf("pather: %s", err)
}
resp, err := httputil.Head(
fmt.Sprintf("http://%s/files/%s", c.config.Addr, p))
fmt.Sprintf("https://%s/files/%s", c.config.Addr, p))
if err != nil {
if httputil.IsNotFound(err) {
return nil, backenderrors.ErrBlobNotFound
Expand All @@ -108,7 +108,7 @@ func (c *Client) Upload(namespace, name string, src io.Reader) error {
return fmt.Errorf("pather: %s", err)
}
_, err = httputil.Post(
fmt.Sprintf("http://%s/files/%s", c.config.Addr, p),
fmt.Sprintf("https://%s/files/%s", c.config.Addr, p),
httputil.SendBody(src))
return err
}
Expand All @@ -120,7 +120,7 @@ func (c *Client) Download(namespace, name string, dst io.Writer) error {
return fmt.Errorf("pather: %s", err)
}
resp, err := httputil.Get(
fmt.Sprintf("http://%s/files/%s", c.config.Addr, p))
fmt.Sprintf("https://%s/files/%s", c.config.Addr, p))
if err != nil {
if httputil.IsNotFound(err) {
return backenderrors.ErrBlobNotFound
Expand All @@ -146,7 +146,7 @@ func (c *Client) List(prefix string, opts ...backend.ListOption) (*backend.ListR
}

resp, err := httputil.Get(
fmt.Sprintf("http://%s/list/%s", c.config.Addr, path.Join(c.pather.BasePath(), prefix)))
fmt.Sprintf("https://%s/list/%s", c.config.Addr, path.Join(c.pather.BasePath(), prefix)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c667443

Please sign in to comment.