mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
Potential fix for #436
This commit is contained in:
@@ -675,6 +675,9 @@ class Response(object):
|
||||
while 1:
|
||||
#XXX correct line size? (httplib has 64kb, seems insane)
|
||||
pending_bytes = fp.readline(40).strip()
|
||||
if pending_bytes == '':
|
||||
# No content, like a HEAD request. Break out.
|
||||
break
|
||||
pending_bytes = int(pending_bytes, 16)
|
||||
if pending_bytes == 0:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user