Solving problem with multipart request.

This commit is contained in:
Erik Amaru Ortiz
2014-07-08 16:01:19 -04:00
parent 9839edbaf1
commit c1f8fdae2a

View File

@@ -198,6 +198,8 @@ class WebApplication
*/
header('Access-Control-Allow-Origin: *');
$_SERVER['REQUEST_URI'] = $uri;
if (is_null($this->rest)) {
$this->initRest($uri, $version, $multipart, $inputExecute);
}
@@ -293,7 +295,6 @@ class WebApplication
}
// Override $_SERVER['REQUEST_URI'] to Restler handles the modified url
$_SERVER['REQUEST_URI'] = $uri;
if (! $isPluginRequest) { // if it is not a request for a plugin endpoint
// scan all api directory to find api classes