changeset 36222:6ba5b03f3645

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 12 Feb 2018 17:19:51 -0800
parents 62bca1c50e96
children 2e07dc514073
files mercurial/wireprotoserver.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py	Mon Feb 12 17:16:52 2018 -0800
+++ b/mercurial/wireprotoserver.py	Mon Feb 12 17:19:51 2018 -0800
@@ -105,7 +105,7 @@
 
     return ''.join(chunks)
 
-class webproto(baseprotocolhandler):
+class httpv1protocolhandler(baseprotocolhandler):
     def __init__(self, req, ui):
         self._req = req
         self._ui = ui
@@ -201,7 +201,7 @@
     if cmd not in wireproto.commands:
         return None
 
-    proto = webproto(req, repo.ui)
+    proto = httpv1protocolhandler(req, repo.ui)
 
     return {
         'cmd': cmd,