Skip to content
Snippets Groups Projects
Commit 3ea01df1 authored by Tom Needham's avatar Tom Needham
Browse files

API: Parse PUT and DELETE variables

parent 89260385
Branches
No related tags found
No related merge requests found
......@@ -81,6 +81,12 @@ class OC_API {
* @param array $parameters
*/
public static function call($parameters){
// Prepare the request variables
if($_SERVER['REQUEST_METHOD'] == 'PUT'){
parse_str(file_get_contents("php://input"), $_PUT);
} else if($_SERVER['REQUEST_METHOD'] == 'DELETE'){
parse_str(file_get_contents("php://input"), $_DELETE);
}
$name = $parameters['_route'];
// Loop through registered actions
foreach(self::$actions[$name] as $action){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment