Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Route matches empty strings #120

Closed
dzhus opened this Issue · 1 comment

2 participants

@dzhus

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

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.