Skip to content

Commit

Permalink
FIxed 'feed' bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
synchronizing committed Jan 6, 2022
1 parent fefd0c6 commit cb469e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httpq/httpq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit cb469e9

Please sign in to comment.