mercurial/hgweb/webcommands.py
changeset 18348 764a758780b6
parent 18347 853221386f48
child 18352 e33b9b92a200
equal deleted inserted replaced
18347:853221386f48 18348:764a758780b6
   802     headers = [
   802     headers = [
   803         ('Content-Disposition', 'attachment; filename=%s%s' % (name, extension))
   803         ('Content-Disposition', 'attachment; filename=%s%s' % (name, extension))
   804         ]
   804         ]
   805     if encoding:
   805     if encoding:
   806         headers.append(('Content-Encoding', encoding))
   806         headers.append(('Content-Encoding', encoding))
   807     req.header(headers)
   807     req.headers.extend(headers)
   808     req.respond(HTTP_OK, mimetype)
   808     req.respond(HTTP_OK, mimetype)
   809 
   809 
   810     ctx = webutil.changectx(web.repo, req)
   810     ctx = webutil.changectx(web.repo, req)
   811     archival.archive(web.repo, req, cnode, artype, prefix=name,
   811     archival.archive(web.repo, req, cnode, artype, prefix=name,
   812                      matchfn=scmutil.match(ctx, []),
   812                      matchfn=scmutil.match(ctx, []),