diff --git a/plugins/views_plugin_display_feed.inc b/plugins/views_plugin_display_feed.inc index 0965fc18abd7bc8bfa3e1ced1714c06db5588f14..fd8156346736b2c793bd9f6b52133b2fe5c3f6ae 100644 --- a/plugins/views_plugin_display_feed.inc +++ b/plugins/views_plugin_display_feed.inc @@ -5,6 +5,8 @@ * Contains the feed display plugin. */ +use Symfony\Component\HttpFoundation\Response; + /** * The plugin that handles a feed, such as RSS or atom. * @@ -39,7 +41,10 @@ function execute() { if (empty($output)) { return drupal_not_found(); } - print $output; + // @todo: This is not a valid fix, because only the style plugin knows the + // Content-Type. There needs some global response object on the view which + // can be manipulated and then is used optionally. + return new Response($output, 200, array('Content-Type' => 'application/rss+xml; charset=utf-8')); } function preview() {