diff -r 89002d07a114 -r 98baf8dea553 mercurial/hgweb/webcommands.py --- 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):