8000 [WebProfiler] fix content-type parameter by Tobion · Pull Request #8350 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WebProfiler] fix content-type parameter #8350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[WebProfiler] fix content-type parameter
  • Loading branch information
Tobion committed Jun 24, 2013
commit 83846e49e0e8695b5cca9a6663b34fffe2dc67cb
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public function cssAction($token)
if (!$this->templateExists($template)) {
$handler = new ExceptionHandler();

return new Response($handler->getStylesheet($exception));
return new Response($handler->getStylesheet($exception), 200, array('Content-Type' => 'text/css'));
}

return new Response($this->twig->render('@WebProfiler/Collector/exception.css.twig'), 200, 'text/css');
return new Response($this->twig->render('@WebProfiler/Collector/exception.css.twig'), 200, array('Content-Type' => 'text/css'));
}

protected function getTemplate()
Expand Down
0