Commit dd38e2e4fd7b2fa9c7ca57d4a1c209e22b8000cf
1 parent
7b25cb53
Exists in
master
and in
9 other branches
added content types
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/DDSERVICES/HAPI/data.php
... | ... | @@ -40,9 +40,13 @@ |
40 | 40 | $response["status"] = 400; |
41 | 41 | $response["msg"] = "No ID !!!"; |
42 | 42 | |
43 | + header('Content-Type: application/json'); | |
44 | + | |
43 | 45 | exit(json_encode($response)); |
44 | 46 | } |
45 | 47 | |
48 | + header('Content-Type: text/csv'); | |
49 | + | |
46 | 50 | $id = $_GET["id"]; |
47 | 51 | $tmin = $_GET["time_min"]; |
48 | 52 | $tmax = $_GET["time_max"]; |
... | ... |