From 96c1dc75606abe571b4826034728c94462c4554d Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 24 Jul 2022 00:42:17 +0700 Subject: [PATCH] Proxy more mime types --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 73984b1..d17a860 100644 --- a/main.go +++ b/main.go @@ -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)