From 05ba91cde5ad2e371239e87b4d038f06c6a2df12 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Wed, 18 Apr 2012 17:31:10 -0500 Subject: [PATCH] better response.files behavior --- VERSION | 2 +- gluon/globals.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1357fc28..4664ca3e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-17 21:21:45) dev +Version 1.99.7 (2012-04-18 17:30:38) dev diff --git a/gluon/globals.py b/gluon/globals.py index e74e97b2..f265c1da 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -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