Skip to content

Commit

Permalink
Merge pull request containerd#572 from stevvooe/fetcher-concurrency-bug
Browse files Browse the repository at this point in the history
cmd/dist/fetch: address subtle concurrency bug
  • Loading branch information
stevvooe authored Feb 25, 2017
2 parents 0f76e0a + 2e0c92b commit c2c057a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/dist/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ func getResolver(ctx contextpkg.Context) (remotes.Resolver, error) {
}

for _, path := range paths {
base.Path = path
url := base.String()
url := base
url.Path = path
log.G(ctx).WithField("url", url).Debug("fetch content")

req, err := http.NewRequest(http.MethodGet, url, nil)
req, err := http.NewRequest(http.MethodGet, url.String(), nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c2c057a

Please sign in to comment.