--- a/mercurial/hgweb/request.py Tue Jun 20 15:17:28 2006 -0700
+++ b/mercurial/hgweb/request.py Tue Jun 20 15:23:01 2006 -0700
@@ -45,9 +45,9 @@
self.out.write("%s: %s\r\n" % header)
self.out.write("\r\n")
- def httphdr(self, type, filename=None, length=0):
-
- headers = [('Content-type', type)]
+ def httphdr(self, type, filename=None, length=0, headers={}):
+ headers = headers.items()
+ headers.append(('Content-type', type))
if filename:
headers.append(('Content-disposition', 'attachment; filename=%s' %
filename))