I am creating a route to handle RSS feeds using the rss
npm module.
I've generated the appropriate xml string, I just need to know how to output xml/rss using proper headers with express 4.0.
I tried this but it doesn't work, I get an empty json object:
res.xml(xml);
Figured it out:
res.set('Content-Type', 'application/rss+xml');
res.send(xml);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With