Proxy text/xml
This commit is contained in:
parent
96c1dc7560
commit
496a5e646c
2
main.go
2
main.go
|
@ -163,7 +163,7 @@ func main() {
|
||||||
mime, _, _ := strings.Cut(resp.Meta, ";")
|
mime, _, _ := strings.Cut(resp.Meta, ";")
|
||||||
if mime == "application/rss+xml" || mime == "application/rss" ||
|
if mime == "application/rss+xml" || mime == "application/rss" ||
|
||||||
mime == "application/atom+xml" || mime == "application/atom" ||
|
mime == "application/atom+xml" || mime == "application/atom" ||
|
||||||
mime == "application/xml" {
|
mime == "application/xml" || mime == "text/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