multiple choice when adding new feed

This commit is contained in:
Nazar Kanaev
2020-07-28 15:58:57 +01:00
parent 745ade6121
commit d83dda9ebf
4 changed files with 31 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ func FeedListHandler(rw http.ResponseWriter, req *http.Request) {
}
writeJSON(rw, map[string]string{"status": "success"})
}
} else if strings.HasPrefix(contentType, "text/xml") || strings.HasPrefix(contentType, "application/xml") {
} else if strings.HasPrefix(contentType, "text/xml") || strings.HasPrefix(contentType, "application/xml") || strings.HasPrefix(contentType, "application/rss+xml") {
err = createFeed(db(req), feedUrl, feed.FolderID)
if err == nil {
writeJSON(rw, map[string]string{"status": "success"})