# HG changeset patch # User Gregory Szorc # Date 2018-02-13 01:19:51 # Node ID 6ba5b03f3645c70fd2ba4814cc7c96786b409ba3 # Parent 62bca1c50e96c5fb87faaad0fa3a03e1a23eb697 wireprotoserver: rename webproto to httpv1protocolhandler This matches our naming convention for the SSH server's protocol handler. Differential Revision: https://phab.mercurial-scm.org/D2218 diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -105,7 +105,7 @@ def decodevaluefromheaders(req, headerpr return ''.join(chunks) -class webproto(baseprotocolhandler): +class httpv1protocolhandler(baseprotocolhandler): def __init__(self, req, ui): self._req = req self._ui = ui @@ -201,7 +201,7 @@ def parsehttprequest(repo, req, query): if cmd not in wireproto.commands: return None - proto = webproto(req, repo.ui) + proto = httpv1protocolhandler(req, repo.ui) return { 'cmd': cmd,