mercurial/hgweb/hgweb_mod.py
changeset 2622 064aef9162cc
parent 2621 5a5852a417b1
child 2666 ebf033bc8eb2
child 2683 8a798185809d
equal deleted inserted replaced
2621:5a5852a417b1 2622:064aef9162cc
   859         req.write(staticfile(static, fname, req)
   859         req.write(staticfile(static, fname, req)
   860                   or self.t("error", error="%r not found" % fname))
   860                   or self.t("error", error="%r not found" % fname))
   861 
   861 
   862     def do_capabilities(self, req):
   862     def do_capabilities(self, req):
   863         caps = ['unbundle']
   863         caps = ['unbundle']
   864         if self.repo.ui.configbool('server', 'stream'):
   864         if self.repo.ui.configbool('server', 'uncompressed'):
   865             caps.append('stream=%d' % self.repo.revlogversion)
   865             caps.append('stream=%d' % self.repo.revlogversion)
   866         resp = ' '.join(caps)
   866         resp = ' '.join(caps)
   867         req.httphdr("application/mercurial-0.1", length=len(resp))
   867         req.httphdr("application/mercurial-0.1", length=len(resp))
   868         req.write(resp)
   868         req.write(resp)
   869 
   869