Show More
@@ -301,11 +301,7 b' def _httpv2runcommand(ui, repo, req, res' | |||||
301 | res.status = b'200 OK' |
|
301 | res.status = b'200 OK' | |
302 | res.headers[b'Content-Type'] = FRAMINGTYPE |
|
302 | res.headers[b'Content-Type'] = FRAMINGTYPE | |
303 |
|
303 | |||
304 |
if isinstance(rsp, wireprototypes. |
|
304 | if isinstance(rsp, wireprototypes.cborresponse): | |
305 | action, meta = reactor.oncommandresponseready(outstream, |
|
|||
306 | command['requestid'], |
|
|||
307 | rsp.data) |
|
|||
308 | elif isinstance(rsp, wireprototypes.cborresponse): |
|
|||
309 | encoded = cbor.dumps(rsp.value, canonical=True) |
|
305 | encoded = cbor.dumps(rsp.value, canonical=True) | |
310 | action, meta = reactor.oncommandresponseready(outstream, |
|
306 | action, meta = reactor.oncommandresponseready(outstream, | |
311 | command['requestid'], |
|
307 | command['requestid'], |
General Comments 0
You need to be logged in to leave comments.
Login now