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

Route matches empty strings #120

Closed
dzhus opened this issue Jan 29, 2012 · 1 comment
Closed

Route matches empty strings #120

dzhus opened this issue Jan 29, 2012 · 1 comment

Comments

@dzhus
Copy link

dzhus commented Jan 29, 2012

route function successfully assigns a handler even if some of variable captures resulted in empty string. This may be displeasing in certain setups.

With routing table set as follows:

routes = [ (":model", method GET emptyForm)
         , (":model/model", method GET metamodel)

         , (":model", method POST create)
         , (":model/:id", method GET read')
         , (":model/:id", method DELETE delete)
         ]

requesting /test/ gets handled by read', not emptyForm, with id parameter set to empty.

@gregorycollins
Copy link
Member

Fixed.

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

2 participants