Skip to content

Commit

Permalink
We can always send back the header because Kohana buffers output.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Aug 8, 2010
1 parent ab2e2d2 commit 9b5e058
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/gallery/helpers/json.php
Expand Up @@ -25,9 +25,7 @@ class json_Core {
* @param mixed $message string or object to json encode and print
*/
static function reply($message) {
if (!headers_sent()) {
header("Content-Type: application/json; charset=" . Kohana::CHARSET);
}
header("Content-Type: application/json; charset=" . Kohana::CHARSET);
print json_encode($message);
}
}

0 comments on commit 9b5e058

Please sign in to comment.