# HG changeset patch # User Patrick Mezard # Date 2009-01-03 00:00:46 # Node ID 305efd897a632cdaca80a6ca05397ed8beb6c024 # Parent f03562400824201da94fa939a645646c07cbfef7 hgwebdir_mod: fix a performance issue with static files diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -130,7 +130,7 @@ class hgwebdir(object): 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: