hgwebdir_mod: fix a performance issue with static files
authorPatrick Mezard <pmezard@gmail.com>
Sat, 03 Jan 2009 01:00:46 +0100
changeset 7560 305efd897a63
parent 7556 f03562400824
child 7561 fa23d169a895
child 7571 de7b12a23ba0
hgwebdir_mod: fix a performance issue with static files
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Wed Dec 31 17:38:35 2008 -0600
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Jan 03 01:00:46 2009 +0100
@@ -130,7 +130,7 @@
                     else:
                         fname = req.form['static'][0]
                     static = templater.templatepath('static')
-                    return staticfile(static, fname, req)
+                    return (staticfile(static, fname, req),)
 
                 # top-level index
                 elif not virtual: