diff -r 853221386f48 -r 764a758780b6 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Jan 15 01:05:12 2013 +0100 +++ b/mercurial/hgweb/webcommands.py Tue Jan 15 01:05:12 2013 +0100 @@ -804,7 +804,7 @@ ] if encoding: headers.append(('Content-Encoding', encoding)) - req.header(headers) + req.headers.extend(headers) req.respond(HTTP_OK, mimetype) ctx = webutil.changectx(web.repo, req)