No regex pattern matching when delegating to sub applications #267

Larpon opened this Issue Nov 23, 2013 · 0 comments


None yet
1 participant

Larpon commented Nov 23, 2013

I think there might be an undesirable feature in the way paths are matched in the code that decides if a path should be delegated to a sub application.

The value is matched with ".startswith(pat)" which causes the delegation to choose the first sub application that handles a path similar to other sub application registered paths .

An example:
sub_app1 handles "/theme"
sub_app2 handles "/themes"

when I request "/themes" in my browser it's sub_app1's code that will handle it because .startswith(pat) will match "/theme" before "/themes" - thus giving me an undesired result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment