mercurial/hgweb/webcommands.py
changeset 36873 98baf8dea553
parent 36872 89002d07a114
child 36875 16499427f6de
--- a/mercurial/hgweb/webcommands.py	Sat Mar 10 15:37:29 2018 -0800
+++ b/mercurial/hgweb/webcommands.py	Sat Mar 10 15:46:29 2018 -0800
@@ -1232,8 +1232,9 @@
         if isinstance(tp, str):
             tp = [tp]
         static = [os.path.join(p, 'static') for p in tp]
-    staticfile(static, fname, req)
-    return []
+
+    staticfile(static, fname, web.res)
+    return web.res
 
 @webcommand('graph')
 def graph(web, req, tmpl):