diff options
| author | nytpu <alex@nytpu.com> | 2023-12-31 15:49:57 -0700 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2023-12-31 15:49:57 -0700 |
| commit | dd430cd9bc878efadb54e24a68beb0867da6af13 (patch) | |
| tree | 8ed0774bf096d66f526bc2364c90656fa13e5d3d /fetch/gemini.go | |
| parent | cf20f5877ef1fa258849f8a283dbd4080a96eb83 (diff) | |
Recognize MIME type used for JSON feeds v1.1
Reported by Michael Nordmeyer
Diffstat (limited to 'fetch/gemini.go')
| -rw-r--r-- | fetch/gemini.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fetch/gemini.go b/fetch/gemini.go index 2608468..1182629 100644 --- a/fetch/gemini.go +++ b/fetch/gemini.go @@ -109,7 +109,8 @@ func geminiFeed(data *core.FullData, remote string, title string) error { "application/rss+xml", "application/atom+xml", "application/xml", - "application/json": + "application/json", + "application/feed+json": gofeed, err := gofeed.NewParser().Parse(reader) if err != nil { return err |
