Skip to content

Commit

Permalink
Annotate gosec issue on downloading the passed file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sioro-Neoku committed Jan 13, 2019
1 parent ec584e2 commit e605fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ func downloadFile(URL string) (fileName string, err error) {
}
}()

// #nosec
// We are downloading the url the user passed to us, we trust it is a torrent file.
response, err := http.Get(URL)
if err != nil {
return
Expand Down

0 comments on commit e605fba

Please sign in to comment.