Merge pull request #42 from SpaiR/patch-1

Adds 'Content-Type' header with 'application/json' value
This commit is contained in:
Christian Haschek
2018-03-08 08:38:04 +01:00
committed by GitHub

View File

@@ -24,6 +24,8 @@ include_once(ROOT.DS.'inc'.DS.'core.php');
$pm = new PictshareModel();
header('Content-Type: application/json; charset=utf-8');
if(UPLOAD_CODE!=false && !$pm->uploadCodeExists($_REQUEST['upload_code']))
exit(json_encode(array('status'=>'ERR','reason'=>'Wrong upload code provided')));