seul dieu le sait

This commit is contained in:
SeekDaSky 2015-12-14 10:16:09 +01:00
parent b145b13dea
commit faf30bfa4d
4 changed files with 4 additions and 6 deletions

View File

@ -48,4 +48,4 @@ class Patient
}
}
}
}

View File

@ -181,7 +181,7 @@ class Response{
echo $this->response;
//fermeture de la communication
header('Connection: close');
header('Content-Length: '.ob_get_length());
header('Content-Length:'.ob_get_length());
ob_end_flush();
ob_flush();
flush();
@ -199,4 +199,4 @@ class Response{
$response->write($content);
$response->send();
}
}
}

View File

@ -13,12 +13,10 @@ if($GLOBALS['compression']){
}
//les managers ne renvoient QUE du json, on met donc le header de la réponse a jour
//header('Content-Type: application/json');
//on inclu l'autoloader
include(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'autoloader.php');
$manager = new Manager();
//on récupère la commande et la parse pour être executée
if(isset($_POST['command'])){
$commands = explode(':',$_POST['command']);

View File

@ -7,4 +7,4 @@
*/
require_once('autoloader.php');
var_dump(StaticRepo::checkParam(138,'Integer'));
Response::quickResponse(200,'lol');