[PATCH] hgweb/localrepo: pass the request object to hooks
Sune Foldager
cryo at cyanite.org
Fri Nov 6 13:55:24 CST 2009
Dirkjan Ochtman wrote:
> It seems pretty ugly to stick data into the repo object like that.
> What are you really trying to do here?
I am trying to do what I wrote in the patch: Authorize the users push
ability depending on what she pushes. I need to inspect the HTTP
authentication headers, since we do custom auth, and don't use the web
server for it. That header is in the HTTP_AUTHORIZATION environment
variable in CGI and WSGI. (All headers get envvar-ized like that).
/Sune
More information about the Mercurial-devel
mailing list