[Routing] fix typo
This commit is contained in:
parent
05a045268f
commit
ed42760b41
|
@ -62,7 +62,7 @@ class ProjectUrlMatcher extends Symfony\Component\Routing\Matcher\UrlMatcher
|
|||
not_get_and_head:
|
||||
|
||||
// post_and_head
|
||||
if ('/post_and_get' === $pathinfo) {
|
||||
if ('/post_and_head' === $pathinfo) {
|
||||
if (!in_array($requestMethod, array('POST', 'HEAD'))) {
|
||||
$allow = array_merge($allow, array('POST', 'HEAD'));
|
||||
goto not_post_and_head;
|
||||
|
|
|
@ -354,7 +354,7 @@ class PhpMatcherDumperTest extends TestCase
|
|||
array('GET', 'HEAD')
|
||||
));
|
||||
$headMatchCasesCollection->add('post_and_head', new Route(
|
||||
'/post_and_get',
|
||||
'/post_and_head',
|
||||
array(),
|
||||
array(),
|
||||
array(),
|
||||
|
|
Reference in New Issue