mercurial/hgweb.py
changeset 1308 2073e5a71008
parent 1275 a1a84dd489ff
child 1320 5f277e73778f
equal deleted inserted replaced
1285:1546c2aa6b30 1308:2073e5a71008
   683 
   683 
   684             if type == "gz":
   684             if type == "gz":
   685                 encoding = "gzip"
   685                 encoding = "gzip"
   686             else:
   686             else:
   687                 encoding = "x-bzip2"
   687                 encoding = "x-bzip2"
   688             req.header([('Content-type', 'application/x-tar'), 
   688             req.header([('Content-type', 'application/x-tar'),
   689                     ('Content-disposition', 'attachment; filename=%s%s%s' %
   689                     ('Content-disposition', 'attachment; filename=%s%s%s' %
   690                         (name[:-1], '.tar.', type)),
   690                         (name[:-1], '.tar.', type)),
   691                     ('Content-encoding', encoding)])
   691                     ('Content-encoding', encoding)])
   692             for fname in files:
   692             for fname in files:
   693                 rcont = self.repo.file(fname).read(mf[fname])
   693                 rcont = self.repo.file(fname).read(mf[fname])