Commit 67fc03f3 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Issue #1623492 by dawehner: Commit a temporary fix for the feed display to...

Issue #1623492 by dawehner: Commit a temporary fix for the feed display to return the right http-Content-type.
parent 6a9ba69b
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment