mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-17 13:38:01 +00:00
Merge pull request #42 from SpaiR/patch-1
Adds 'Content-Type' header with 'application/json' value
This commit is contained in:
@@ -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')));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user