aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-19 00:06:10 -0800
committerredmatrix <git@macgirvin.com>2016-02-19 00:06:10 -0800
commit28d07fd6b2b48632edadc94055c1be8a0cb11274 (patch)
tree3f32eb951b3a3fae05ae7be1566d66a1293b1339 /include/network.php
parent5a7b994e59306519574ce7aaa004f08d7d47ee05 (diff)
downloadvolse-hubzilla-28d07fd6b2b48632edadc94055c1be8a0cb11274.tar.gz
volse-hubzilla-28d07fd6b2b48632edadc94055c1be8a0cb11274.tar.bz2
volse-hubzilla-28d07fd6b2b48632edadc94055c1be8a0cb11274.zip
move storage assets to zotlabs/storage
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index aa6b54945..ecaf4e05f 100644
--- a/include/network.php
+++ b/include/network.php
@@ -294,8 +294,8 @@ function z_post_url_json($url, $params, $redirects = 0, $opts = array()) {
}
-function json_return_and_die($x) {
- header("content-type: application/json");
+function json_return_and_die($x, $content_type = 'application/json') {
+ header("Content-type: $content_type");
echo json_encode($x);
killme();
}