From cb469e935beb4ca71197b82d97b8ecb4cc45594b Mon Sep 17 00:00:00 2001 From: synchronizing <2829082+synchronizing@users.noreply.github.com> Date: Wed, 5 Jan 2022 23:15:06 -0500 Subject: [PATCH] FIxed 'feed' bug. --- httpq/httpq.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpq/httpq.py b/httpq/httpq.py index 35c1261..0a1faef 100644 --- a/httpq/httpq.py +++ b/httpq/httpq.py @@ -92,7 +92,7 @@ def __setattr__(self, name: str, value: Any): else: super().__setattr__(name, Item(value)) - def feed(self, msg: bytes): + def feed(self, msg: bytes) -> state: """ Adds chuncks of the message to the internal buffer. @@ -105,6 +105,7 @@ def feed(self, msg: bytes): raise TypeError("Message must be bytes.") self.buffer += msg + return self.state @property def state(self) -> state: