summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1dcac7b..5ef509d 100644
--- a/index.php
+++ b/index.php
@@ -303,6 +303,8 @@ for ($i = 0; $i < count($listing); $i++) {
</body></html>
<?php
} else if ($_GET['format'] == "json") {
+ header("Content-type: application/json");
+
echo json_encode($listing);
} else if ($_GET['format'] == "raw") {
print_r($listing);