Adds 'Content-Type' header

Adds 'Content-Type' header with 'application/json' value.
This commit is contained in:
Ilya
2018-03-07 20:23:01 +03:00
committed by GitHub
parent 45d96b9896
commit 3a09daaa01

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')));