made the WSGI compatibility layer lazy, nobody uses it anyway and it may be broken, probably should be removed

This commit is contained in:
mdipierro
2013-06-30 09:19:26 -05:00
parent d218b052a1
commit 3407cf6584
4 changed files with 52 additions and 53 deletions
+2
View File
@@ -638,6 +638,8 @@ def regex_url_in(request, environ):
if match.group('c') == 'static':
application = match.group('a')
version, filename = None, match.group('z')
if not filename:
raise HTTP(404)
items = filename.split('/', 1)
if regex_version.match(items[0]):
version, filename = items