Skip to content

Commit

Permalink
unite actions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <michaelsv@jfrog.com>
  • Loading branch information
sverdlov93 committed Jul 17, 2024
1 parent ac683f4 commit cc044e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions utils/fileutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,14 @@ func ListFilesByFilterFunc(path string, filterFunc func(filePath string) (bool,
}

func DownloadFile(downloadTo string, fromUrl string) (err error) {
// Get the data
resp, err := http.Get(fromUrl)
req, err := http.NewRequest(http.MethodGet, fromUrl, nil)
if err != nil {
return err
}
resp, err := http.DefaultClient.Do(req)
if err != nil {
return err
}
if err != nil {
return
}
Expand Down

0 comments on commit cc044e3

Please sign in to comment.