better response.files behavior
This commit is contained in:
1 parent
7428f0a824
commit
c25d4787af
2 files changed
+2
-2
No files matched your search
@@ -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 = ''
|
s = ''
|
||||||
for item in files:
|
for item in files:
|
||||||
if isinstance(item,str):
|
if isinstance(item,str):
|
||||||
f = item.lower()
|
f = item.lower().split('?')[0]
|
||||||
if f.endswith('.css'): s += css_template % item
|
if f.endswith('.css'): s += css_template % item
|
||||||
elif f.endswith('.js'): s += js_template % item
|
elif f.endswith('.js'): s += js_template % item
|
||||||
elif f.endswith('.coffee'): s += coffee_template % item
|
elif f.endswith('.coffee'): s += coffee_template % item
|
||||||
|
|||||||
Reference in new issue
Block a user