Skip to content

Commit

Permalink
Add correct JSON Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Jun 14, 2014
1 parent 1a14777 commit 97fd798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/restapi/includes/response.php
Expand Up @@ -30,7 +30,7 @@ function setData( $type, $data ){
}

function output(){

header('Content-Type: application/json');
echo $this->json_encode2( $this->result );
die(0);

Expand Down Expand Up @@ -109,4 +109,4 @@ static function outputMessage( $message ){
}


?>
?>

0 comments on commit 97fd798

Please sign in to comment.