Proxy more mime types

This commit is contained in:
blankie 2022-07-24 00:42:17 +07:00
parent f3333ab888
commit 96c1dc7560
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,9 @@ func main() {
defer resp.Body.Close()
mime, _, _ := strings.Cut(resp.Meta, ";")
if mime == "application/rss+xml" || mime == "application/atom+xml" {
if mime == "application/rss+xml" || mime == "application/rss" ||
mime == "application/atom+xml" || mime == "application/atom" ||
mime == "application/xml" {
out, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)