diff mercurial/hgweb/hgwebdir_mod.py @ 7560:305efd897a63

hgwebdir_mod: fix a performance issue with static files
author Patrick Mezard <pmezard@gmail.com>
date Sat, 03 Jan 2009 01:00:46 +0100
parents e60aaae83323
children 3ccaefc84f45
line wrap: on
line diff
--- 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: