better response.files behavior
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.7 (2012-04-17 21:21:45) dev
|
||||
Version 1.99.7 (2012-04-18 17:30:38) dev
|
||||
|
||||
+1
-1
@@ -251,7 +251,7 @@ class Response(Storage):
|
||||
s = ''
|
||||
for item in files:
|
||||
if isinstance(item,str):
|
||||
f = item.lower()
|
||||
f = item.lower().split('?')[0]
|
||||
if f.endswith('.css'): s += css_template % item
|
||||
elif f.endswith('.js'): s += js_template % item
|
||||
elif f.endswith('.coffee'): s += coffee_template % item
|
||||
|
||||
Reference in New Issue
Block a user