Skip to content

Commit

Permalink
Change response json type to application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
honzapospi authored May 3, 2017
1 parent 7ff8c10 commit 1e3d14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(\Nette\Http\Response $response){
}

public function send(Response $response) {
header('Content-Type: application/vnd.api+json');
header('Content-Type: application/json');
foreach($response->getHeaders() as $name => $value){
header($name.': '.$value);
}
Expand Down

0 comments on commit 1e3d14a

Please sign in to comment.