Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotov2server.py @ 37644:77c9ee77687c
wireproto: rename HTTPV2 so it less like HTTP/2
Per review suggestion on D3230 from Augie.
Differential Revision: https://phab.mercurial-scm.org/D3295
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 11 Apr 2018 18:15:51 -0700 |
parents | 734515aca84d |
children | b2fa1591fb44 |
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py Fri Apr 13 11:21:55 2018 -0700 +++ b/mercurial/wireprotov2server.py Wed Apr 11 18:15:51 2018 -0700 @@ -27,7 +27,7 @@ FRAMINGTYPE = b'application/mercurial-exp-framing-0003' -HTTPV2 = wireprototypes.HTTPV2 +HTTP_WIREPROTO_V2 = wireprototypes.HTTP_WIREPROTO_V2 def handlehttpv2request(rctx, req, res, checkperm, urlparts): from .hgweb import common as hgwebcommon @@ -332,7 +332,7 @@ @property def name(self): - return HTTPV2 + return HTTP_WIREPROTO_V2 def getargs(self, args): data = {}