From b8563cec35a739aa70a17e5fc4bd4975c7e6034e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 7 Mar 2021 15:49:04 -0500 Subject: [PATCH] Add application/xml to list of feed mimetypes --- feeds/fetch.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feeds/fetch.go b/feeds/fetch.go index 970b4bb..1a7f91e 100644 --- a/feeds/fetch.go +++ b/feeds/fetch.go @@ -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 -- 2.45.2