Native mode: detection and passing down the flag
Workhorse should use the vcs_type
information received from the Rails app to authorize the call and pass it down as a header to the Mercurial backend HTTP server.
(such headers become request environment variables in the WSGI treatment)