I’m using the views_rss
module in Drupal 6. Whenever I build out a View using this plugin, the following header is sent in a template_preprocess
function:
drupal_set_header('Content-Type: application/rss+xml; charset=utf-8');
This seems to be ignored, as the page is ultimately sent with a text/html
header. It seems that my header is getting appended, but text/html
is either sent first or last (whichever is ultimately interpreted by the browser) and thus has no effect.
How can I force a non-text/html header for a page output in Drupal 6?