aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/http1/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/http1/protocol.py')
-rw-r--r--netlib/http/http1/protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/http/http1/protocol.py b/netlib/http/http1/protocol.py
index bf33a18e..cf1dffa3 100644
--- a/netlib/http/http1/protocol.py
+++ b/netlib/http/http1/protocol.py
@@ -413,9 +413,9 @@ class HTTP1Protocol(semantics.ProtocolMixin):
suffix = self.tcp_handler.rfile.readline(5)
if suffix != '\r\n':
raise HttpError(code, "Malformed chunked body")
- yield chunk
if length == 0:
return
+ yield chunk
@classmethod
def _parse_http_protocol(self, line):