Update 3.2.0

This commit is contained in:
Emmanuel ROY 2021-02-23 15:28:23 +01:00
commit c341a9b84b
10 changed files with 117 additions and 93 deletions

View file

@ -23,13 +23,8 @@ class HttpMethod
case 'POST':
break;
case 'PUT':
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
$this->data = json_decode(file_get_contents("php://input"), true);
// no break
case 'DELETE':
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
//on décode les données depuis l'input afin de les traiter
$this->data = json_decode(file_get_contents("php://input"), true);
break;
default: