Skip to content

Commit b7447d5

Browse files
authored
Merge pull request #12 from atk4/DarkSide666-patch-1
Also need to get rid of script name path in case we use htaccess file
2 parents 51b2089 + 5956293 commit b7447d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct($request = null)
3939
$script = $_SERVER['SCRIPT_NAME'];
4040
$path = $_SERVER['REQUEST_URI'];
4141

42-
$this->path = str_replace($script, '', $path);
42+
$this->path = str_replace(dirname($script), '', str_replace($script, '', $path));
4343
}
4444

4545
$ct = $this->request->getHeader('Content-Type');

0 commit comments

Comments
 (0)