Bugfix.
authorCameron Ball <c.ball1729@gmail.com>
Mon, 15 Sep 2014 17:12:05 +0000 (01:12 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Mon, 15 Sep 2014 17:12:05 +0000 (01:12 +0800)
Services/Http/HttpRequest.php

index ef68f33..2105cac 100644 (file)
@@ -181,6 +181,7 @@ class HttpRequest implements IHttpRequest
             $path = substr_replace($requestUri, '', 0, strlen($physicalPath)); // <-- Remove physical path
             $path = str_replace('?' . $queryString, '', $path); // <-- Remove query string
             $path = '/' . ltrim($path, '/'); // <-- Ensure leading slash
+            $path = rtrim($path, '/'); // remove / from the end of string
             
             return $path;
     }