Skip to content

Commit

Permalink
Add Content-Type header to response.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Jul 13, 2009
1 parent dc60b32 commit 6bedf6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recess/recess/framework/AbstractView.class.php
Expand Up @@ -76,6 +76,9 @@ protected final function sendHeadersFor(Response $response) {

header('HTTP/1.1 ' . ResponseCodes::getMessageForCode($response->code));

$format = $response->request->accepts->format();
header('Content-Type: ' . MimeTypes::preferredMimeTypeFor($format));

foreach($response->headers as $header) {
header($header);
}
Expand Down

0 comments on commit 6bedf6b

Please sign in to comment.