function arg could be empty string, the matching rule regex updated.#70
function arg could be empty string, the matching rule regex updated.#70ulion wants to merge 1 commit intojbeluch:masterfrom
Conversation
|
I'm not sure this is the best soluton. I want xbmcswift's URL routing code to behave like real world URLs so there aren't any surprises. I believe a double slash "//" in the path of the URL is technically invalid. Most web frameworks that I've tested seem to condense multiple slashes into a single one. When I encounter this situation, I attach multiple routes to a view and have a default arg of None: @plugin.route('/categories/', name='all_categories')
@plugin.route('/categories/<category>/')
def show_categories(category=None):
passWhat do you think? |
|
well, your workaround works for it, I didn't thought it. |
sometimes, like an optional search keyboard, could be an empty string in the url like // will result '//', which could not be corrected parsed. this commit will fix it.