diff mercurial/hgweb/webcommands.py @ 18348:764a758780b6

hgweb: simplify wsgirequest header handling Remove leaky header abstraction and prepare for other encodings.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 15 Jan 2013 01:05:12 +0100
parents 853221386f48
children e33b9b92a200
line wrap: on
line diff
--- 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)