Skip to content

Commit fd28f45

Browse files
committed
Merge pull request #16 from skipperbent/development
[BUGFIX] Bugfixes
2 parents 099f04f + 5e5a424 commit fd28f45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Pecee/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Request {
1010

1111
public function __construct() {
1212
$this->host = $_SERVER['HTTP_HOST'];
13-
$this->uri = rtrim($_SERVER['REQUEST_URI'], '/') . '/';
13+
$this->uri = $_SERVER['REQUEST_URI'];
1414
$this->method = (isset($_POST['_method'])) ? strtolower($_POST['_method']) : strtolower($_SERVER['REQUEST_METHOD']);
1515
$this->headers = getallheaders();
1616
}

src/Pecee/SimpleRouter/RouterRoute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct($url, $callback) {
1919
}
2020

2121
protected function parseParameters($url, $multiple = false, $regex = self::PARAMETERS_REGEX_MATCH) {
22+
$url = rtrim($url, '/');
2223
$parameters = array();
2324

2425
if($multiple) {

0 commit comments

Comments
 (0)