Fix https loading
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2021-03-08 23:12:35 -05:00
parent eaf2a61714
commit 542fd7c417
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func loadRules(c *yara.Compiler) {
// Load rules from http(s)
// TODO: Support archive files alongside standard yar files
func loadRulesFromHttp(pkg packageurl.PackageURL, c *yara.Compiler) error {
res, err := client.Get(pkg.Name)
res, err := client.Get(pkg.Type + "://" + pkg.Name)
if err != nil {
return err