Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in procesing similar routers #35

Open
pattt opened this issue Jan 12, 2012 · 0 comments
Open

Error in procesing similar routers #35

pattt opened this issue Jan 12, 2012 · 0 comments

Comments

@pattt
Copy link

pattt commented Jan 12, 2012

if we have 2 similar routers with different parameters and request methods, processes only first one even if it not matches with request method. And throws error "METHOD not supported, supported METHODs are: ..."

for example:
/**

  • !RespondsWith Xml, Json
  • !Prefix webContacts/
    */
    !Route POST, contacts/$parameter1
    !Route GET, contacts/$parameter2

request:
GET:webContacts/contacts/1234

response:
"METHOD not supported, supported METHODs are: POST"

possible way to fix is change 173 string in file recess/framework/routing/RtNode.class.php from:
if($result->routeExists) {
to
if($result->routeExists && $result->methodIsSupported) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant