diff --git a/managers/Patient.class.php b/managers/Patient.class.php index b7514c9..9bcd07c 100755 --- a/managers/Patient.class.php +++ b/managers/Patient.class.php @@ -48,4 +48,4 @@ class Patient } } -} \ No newline at end of file +} diff --git a/managers/Response.class.php b/managers/Response.class.php index 5e32c40..9e2666d 100755 --- a/managers/Response.class.php +++ b/managers/Response.class.php @@ -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(); } -} \ No newline at end of file +} diff --git a/managers/index.php b/managers/index.php index 233a8b8..d2ec853 100755 --- a/managers/index.php +++ b/managers/index.php @@ -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']); diff --git a/test.php b/test.php index 5ae6bc4..be09c42 100755 --- a/test.php +++ b/test.php @@ -7,4 +7,4 @@ */ require_once('autoloader.php'); -var_dump(StaticRepo::checkParam(138,'Integer')); \ No newline at end of file +Response::quickResponse(200,'lol');