mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Fixed utf-8 header issue (issue: #333)
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