Patchwork D3387: wireprotov2: remove support for sending bytes response

login
register
mail settings
Submitter phabricator
Date April 16, 2018, 11:11 p.m.
Message ID <e9edc6e67dad7b2232ef8c14b3b19a0f@localhost.localdomain>
Download mbox | patch
Permalink /patch/31117/
State Not Applicable
Headers show

Comments

phabricator - April 16, 2018, 11:11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5cdde6158426: wireprotov2: remove support for sending bytes response (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3387?vs=8299&id=8330

REVISION DETAIL
  https://phab.mercurial-scm.org/D3387

AFFECTED FILES
  mercurial/wireprotov2server.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py
--- a/mercurial/wireprotov2server.py
+++ b/mercurial/wireprotov2server.py
@@ -301,11 +301,7 @@ 
     res.status = b'200 OK'
     res.headers[b'Content-Type'] = FRAMINGTYPE
 
-    if isinstance(rsp, wireprototypes.bytesresponse):
-        action, meta = reactor.oncommandresponseready(outstream,
-                                                     command['requestid'],
-                                                     rsp.data)
-    elif isinstance(rsp, wireprototypes.cborresponse):
+    if isinstance(rsp, wireprototypes.cborresponse):
         encoded = cbor.dumps(rsp.value, canonical=True)
         action, meta = reactor.oncommandresponseready(outstream,
                                                       command['requestid'],