X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat;h=997996d8dee263e4a742d2c239883f72177f2edb;hp=b8477bb24bf33d745649a0082d363bff167c574c;hb=4224dc197474ed0a2535cdb100193fffaa697d0e;hpb=d5008b7cbaee6052bc6c19b3df6283b9881e7b0a diff --git a/hippotat b/hippotat index b8477bb..997996d 100755 --- a/hippotat +++ b/hippotat @@ -42,7 +42,7 @@ class GeneralResponseConsumer(twisted.internet.protocol.Protocol): self._log(DBG.HTTP_CTRL, 'connectionMade') class ResponseConsumer(GeneralResponseConsumer): - def __init__(self, cl, req): + def __init__(self, cl, req, resp): super().__init__(cl, req, 'RC') ssddesc = '[%s] %s' % (id(req), self._desc) self._ssd = SlipStreamDecoder(ssddesc, partial(queue_inbound, cl.ipif)) @@ -139,7 +139,7 @@ class Client(): 'req_ok %d %s %s' % (resp.code, repr(resp.phrase), str(resp)), idof=req) if resp.code == 200: - rc = ResponseConsumer(cl, req) + rc = ResponseConsumer(cl, req, resp) else: rc = ErrorResponseConsumer(cl, req, resp)