diff --git a/gunicorn/http/parser.py b/gunicorn/http/parser.py index 3f311d3d..b8c0e03c 100644 --- a/gunicorn/http/parser.py +++ b/gunicorn/http/parser.py @@ -140,7 +140,7 @@ class Parser(object): if self._chunk_eof: return True elif self._content_len == 0: - return True + return True return False def read_chunk(self, data): diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index 967f4199..2a1a0627 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -147,7 +147,7 @@ class TeeInput(object): self.tmp.seek(0, os.SEEK_END) return chunk - if self.parser.body_eof(): + if self.parser.body_eof(): break data = read_partial(self.socket, length)