Update core/podcasts/podcasts.go

Co-authored-by: strix-security[bot] <257889806+strix-security[bot]@users.noreply.github.com>
This commit is contained in:
Jiho Andrew Lee 2026-09-07 17:36:29 +09:00
commit e66e53c5dd

View file

@ -532,6 +532,9 @@ func (pw *progressWriter) Write(p []byte) (int, error) {
}
func fetchAndParse(rssURL string) (*rssFeed, error) {
if err := validateURL(rssURL); err != nil {
return nil, fmt.Errorf("invalid RSS feed URL: %w", err)
}
httpClient := &http.Client{Timeout: 15 * time.Second}
resp, err := httpClient.Get(rssURL) //nolint:gosec
if err != nil {