Open bekopharm opened 4 years ago
They are misrepresenting the feed though
I'm getting it as text/xml, which I do interpret as a feed.
Yes, they fixed it because I notified them about the problem.
Kinda surprised that a government website fixed something like this within 5 days.
This is still a very common problem usually with Typo3 backends.
If you need it as text/html
again for testing I'd gladly reconfigure my proxy to do so :)
Hej, got a feed for my Yarn server from a Typo3 system where a feed is delivered as
text/html
.While this is wrong (in theory) W3C only yields a warning but verifies the feed as fine otherwise: https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.baden-wuerttemberg.de%2Fde%2Fservice%2Frss%2Fxml%2Frss-alle-meldungen%2F
Other readers I tried also don't make a fuss so I traced the issue down to the
Parse_This_Discovery
class functionfetch()
where the feed ends up in thetext/html
block where it yields an empty result.I ended up with a workaround by adding a proxy rule to my
nginx
like this:This overrides the shipped Content-Type (and also requests as
application/rss+xml
but the remote server doesn't care and shipstest/html
always) which satisfiesParse-This
and allows the feed to be parsed just fine.While this is certainly not ideal I can now read the feed on my Yarn MicroSub server.
Please add/improve
application/rss+xml
detection for Content-Typetext/html
. I experienced this with Typo3 systems before and there are probably many sites out there advertising the wrong type.