mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 16:57:53 +00:00
Merge pull request #336 from skipperbent/v3-development
Version 3.4.9.0
This commit is contained in:
@@ -95,7 +95,7 @@ class Response
|
|||||||
throw new \InvalidArgumentException('Invalid type for parameter "value". Must be of type array or object implementing the \JsonSerializable interface.');
|
throw new \InvalidArgumentException('Invalid type for parameter "value". Must be of type array or object implementing the \JsonSerializable interface.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->header('Content-type: application/json');
|
$this->header('Content-Type: application/json; charset=utf-8');
|
||||||
echo json_encode($value, $options, $dept);
|
echo json_encode($value, $options, $dept);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user