diff --git a/sanic/http.py b/sanic/http.py index 80301aff5c..a594e60c5e 100644 --- a/sanic/http.py +++ b/sanic/http.py @@ -490,6 +490,9 @@ async def read(self) -> Optional[bytes]: if size <= 0: self.request_body = None + # Because we are leaving one CRLF in the buffer, we manually + # reset the buffer here + self.recv_buffer = bytearray() if size < 0: self.keep_alive = False