aboutsummaryrefslogtreecommitdiffstats
path: root/storage-backend
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-08-23 10:07:29 +0200
committersteckbrief <steckbrief@chefmail.de>2016-08-23 10:07:29 +0200
commit7ce02c25b1a1e0ed915be4a9bc781744328d92ee (patch)
tree427ece8b6c9b74491ed2649db71d392cebe17cfd /storage-backend
parent6691b27bd11520a826d4ad5a94449603549854a0 (diff)
Add content type header
Diffstat (limited to 'storage-backend')
-rw-r--r--storage-backend/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage-backend/index.php b/storage-backend/index.php
index a7c79d3..99d919c 100644
--- a/storage-backend/index.php
+++ b/storage-backend/index.php
@@ -244,6 +244,7 @@ function sendHttpReturnCodeAndJson($code, $data) {
if (!is_array($data)) {
$data = ['msg' => $data];
}
+ header('Content-Type: application/json');
sendHttpReturnCodeAndMessage($code, json_encode($data));
}