We need to output JSON

This commit is contained in:
Pierre Rudloff 2014-03-28 20:35:32 +01:00
parent f17592e2ff
commit 78273d48fe

View file

@ -5,6 +5,6 @@ require_once 'download.php';
if (isset($_GET["url"])) { if (isset($_GET["url"])) {
header('Content-Type: application/json'); header('Content-Type: application/json');
$video = VideoDownload::getJSON($_GET["url"]); $video = VideoDownload::getJSON($_GET["url"]);
echo $video; echo json_encode($video);
} }
?> ?>