diff mercurial/hgweb/hgweb_mod.py @ 5930:c301f15c965a

send conservatively capitalized HTTP headers
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 23 Jan 2008 14:28:25 +0100
parents 3340aa5a64f7
children 0011316fbe0e
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Wed Jan 16 19:14:54 2008 +0330
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Jan 23 14:28:25 2008 +0100
@@ -844,11 +844,13 @@
             arch_version = short(cnode)
         name = "%s-%s" % (reponame, arch_version)
         mimetype, artype, extension, encoding = self.archive_specs[type_]
-        headers = [('Content-type', mimetype),
-                   ('Content-disposition', 'attachment; filename=%s%s' %
-                    (name, extension))]
+        headers = [
+            ('Content-Type', mimetype),
+            ('Content-Disposition', 'attachment; filename=%s%s' %
+                (name, extension))
+        ]
         if encoding:
-            headers.append(('Content-encoding', encoding))
+            headers.append(('Content-Encoding', encoding))
         req.header(headers)
         archival.archive(self.repo, req, cnode, artype, prefix=name)