Proxy more mime types
This commit is contained in:
parent
f3333ab888
commit
96c1dc7560
4
main.go
4
main.go
|
@ -161,7 +161,9 @@ func main() {
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
mime, _, _ := strings.Cut(resp.Meta, ";")
|
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)
|
out, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue