Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] RSS Item link should be optional #96

Merged
merged 1 commit into from
Nov 15, 2022
Merged

Conversation

enumag
Copy link
Contributor

@enumag enumag commented Oct 4, 2022

According to RSS specification the <link> tag in <item> is optional. Such usage currently fails with this library:

feeds/rss.go

Line 98 in 6f6e20d

Link: i.Link.Href,

runtime error: invalid memory address or nil pointer dereference

Because of course in that case i.Link is nil so we can't get a Href from it.

@enumag
Copy link
Contributor Author

enumag commented Oct 4, 2022

The CI failure seems to be unrelated.

@amustaque97
Copy link

Can we merge this @elithrar, this was pending for the last two years or so. It aligns with the RSS specification.

Related issues #97 #52

@elithrar elithrar merged commit 23a1360 into gorilla:master Nov 15, 2022
jlelse pushed a commit to jlelse/feeds that referenced this pull request Jul 7, 2023
Bios-Marcel pushed a commit to Bios-Marcel/feeds that referenced this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants