Skip to content

Commit

Permalink
Https in paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Jan 16, 2025
1 parent 48de62c commit ea21c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/agentclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func New(addr string) *HTTPClient {
// GetTag resolves tag into a digest. Returns ErrTagNotFound if the tag does
// not exist.
func (c *HTTPClient) GetTag(tag string) (core.Digest, error) {
resp, err := httputil.Get(fmt.Sprintf("http://%s/tags/%s", c.addr, url.PathEscape(tag)))
resp, err := httputil.Get(fmt.Sprintf("https://%s/tags/%s", c.addr, url.PathEscape(tag)))
if err != nil {
if httputil.IsNotFound(err) {
return core.Digest{}, ErrTagNotFound
Expand All @@ -72,7 +72,7 @@ func (c *HTTPClient) GetTag(tag string) (core.Digest, error) {
func (c *HTTPClient) Download(namespace string, d core.Digest) (io.ReadCloser, error) {
resp, err := httputil.Get(
fmt.Sprintf(
"http://%s/namespace/%s/blobs/%s",
"https://%s/namespace/%s/blobs/%s",
c.addr, url.PathEscape(namespace), d))
if err != nil {
return nil, err
Expand Down

0 comments on commit ea21c12

Please sign in to comment.