mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 07:42:14 +00:00
Custom regex fix
- Fixed issue with custom-regex maching both host-name and url (issue: #503). - Changed TestRouter so host-name is always set.
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
class TestRouter extends \Pecee\SimpleRouter\SimpleRouter
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
static::request()->setHost('testhost.com');
|
||||
}
|
||||
|
||||
public static function debugNoReset($testUrl, $testMethod = 'get')
|
||||
{
|
||||
$request = static::request();
|
||||
|
||||
Reference in New Issue
Block a user