~sircmpwn/gemreader

b8563cec35a739aa70a17e5fc4bd4975c7e6034e — Drew DeVault 2 years ago 1fbb525
Add application/xml to list of feed mimetypes
1 files changed, 4 insertions(+), 1 deletions(-)

M feeds/fetch.go
M feeds/fetch.go => feeds/fetch.go +4 -1
@@ 78,7 78,10 @@ func fetchGemini(ctx context.Context, remoteURL *url.URL) (*rss.Feed, string, er
			}
		}
		return &feed, FEED_GEMINI, nil
	case "text/xml", "application/rss+xml", "application/atom+xml":
	case "text/xml",
		"application/rss+xml",
		"application/atom+xml",
		"application/xml":
		data, err := io.ReadAll(reader)
		if err != nil {
			return nil, "", err