MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieve...
[moodle.git] / webservice / rest / server.php
index d89e0c1..ec97e05 100644 (file)
@@ -36,9 +36,6 @@ if (!webservice_protocol_is_enabled('rest')) {
 
 $restformat = optional_param('moodlewsrestformat', 'xml', PARAM_ALPHA);
 //remove the alt from the request
 
 $restformat = optional_param('moodlewsrestformat', 'xml', PARAM_ALPHA);
 //remove the alt from the request
-if(isset($_REQUEST['moodlewsrestformat'])) {
-    unset($_REQUEST['moodlewsrestformat']);
-}
 if(isset($_GET['moodlewsrestformat'])) {
     unset($_GET['moodlewsrestformat']);
 }
 if(isset($_GET['moodlewsrestformat'])) {
     unset($_GET['moodlewsrestformat']);
 }