Skip to content

Commit

Permalink
fix: http(s)-file sub must have tag
Browse files Browse the repository at this point in the history
  • Loading branch information
st0nie committed Jan 8, 2025
1 parent 658495e commit 196719f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ func ResolveSubscription(log *logrus.Logger, client *http.Client, configDir stri
}
goto resolve
case "http-file", "https-file":
if len(tag) == 0 {
return "", nil, fmt.Errorf("tag is required for http-file/https-file subscription")
}
persistToFile = true
subscription = strings.Replace(subscription, "-file", "", 1)
break
Expand Down

0 comments on commit 196719f

Please sign in to comment.