Skip to content

Commit

Permalink
Homepage|Build Repository: Serve JSON with the correct MIME type
Browse files Browse the repository at this point in the history
Ensure JSON graphs for the Package objects are served with the
correct MIME type for JSON as specified by RFC4627.
  • Loading branch information
danij-deng committed Feb 16, 2012
1 parent ed16445 commit 17d4e7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/plugins/buildrepository/buildrepository.php
Expand Up @@ -1046,6 +1046,7 @@ private function outputPackageGraph(&$pack)
$cacheName = $this->composePackageGraphCacheName($pack);
try
{
header('Content-type: application/json');
$FrontController->contentCache()->import($cacheName);
}
catch(Exception $e)
Expand Down

0 comments on commit 17d4e7e

Please sign in to comment.