This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: expose URL scheme and REMOTE_* attributes
ClosedPublic

Authored by indygreg on Mar 11 2018, 12:23 AM.

Details

Summary

These are consulted by the HTTP wire protocol handler by reading from
the env dict. Let's expose them as attributes instead.

With the wire protocol handler updates to use the new attributes, we
no longer have any consumers of the legacy wsgirequest type in the
wire protocol code (outside of a proxied call to the permissions
checker). So, we remove most references to it.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Mar 11 2018, 12:23 AM
durin42 accepted this revision.Mar 12 2018, 5:06 PM
This revision is now accepted and ready to land.Mar 12 2018, 5:06 PM
This revision was automatically updated to reflect the committed changes.