From c1f8fdae2aece44b28bf3e57fa5592bda19ff5be Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Tue, 8 Jul 2014 16:01:19 -0400 Subject: [PATCH] Solving problem with multipart request. --- framework/src/Maveriks/WebApplication.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/Maveriks/WebApplication.php b/framework/src/Maveriks/WebApplication.php index 5408662b0..4cce3a459 100644 --- a/framework/src/Maveriks/WebApplication.php +++ b/framework/src/Maveriks/WebApplication.php @@ -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