Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 2442:c660691fb45d
http: query server for capabilities
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 15 Jun 2006 17:07:30 -0700 |
parents | f910b91dd912 |
children | 09b1c9ef317c |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Thu Jun 15 16:41:49 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Thu Jun 15 17:07:30 2006 -0700 @@ -833,3 +833,9 @@ "static")) req.write(staticfile(static, fname) or self.t("error", error="%r not found" % fname)) + + def do_capabilities(self, req): + resp = '' + req.httphdr("application/mercurial-0.1", length=len(resp)) + req.write(resp) +