Skip to content

Commit

Permalink
CS-5941: Adds charset as well to header
Browse files Browse the repository at this point in the history
  • Loading branch information
m038 committed Dec 22, 2015
1 parent 81dd223 commit e4470a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion newscoop/template_engine/classes/CampSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ public function render()
$document->render($params);

if (array_key_exists('controller', $GLOBALS)) {
$GLOBALS['controller']->getResponse()->setHeader('Content-Type', $document->getMimeType());
$GLOBALS['controller']->getResponse()->setHeader(
'Content-Type',
sprintf('%s; charset=%s', $document->getMimeType(), $document->getCharset())
);
$GLOBALS['header_content_type_set'] = true;
}
}// fn render
Expand Down

0 comments on commit e4470a1

Please sign in to comment.