[FIX] handle correctly the case when the PATH_INFO ends with a slash.

bzr revid: florent.xicluna@gmail.com-20120115235235-kw4vvmp622q8843f
This commit is contained in:
Florent Xicluna 2012-01-16 00:52:35 +01:00
parent 9f3096d31f
commit f51dc9a0bd
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ def wsgi_xmlrpc_1(environ, start_response):
path = environ['PATH_INFO'][len(XML_RPC_PATH_1):]
if path.startswith('/'): path = path[1:]
if path.endswith('/'): p = path[:-1]
if path.endswith('/'): path = path[:-1]
path = path.split('/')
# All routes are hard-coded.
@ -196,7 +196,7 @@ def wsgi_xmlrpc(environ, start_response):
path = environ['PATH_INFO'][len(XML_RPC_PATH):]
if path.startswith('/'): path = path[1:]
if path.endswith('/'): p = path[:-1]
if path.endswith('/'): path = path[:-1]
path = path.split('/')
# All routes are hard-coded.