This commit is contained in:
Kenneth Reitz
2012-04-10 23:00:25 -03:00
parent 6b652f766d
commit 365c64fe3b
+1 -1
View File
@@ -680,7 +680,7 @@ class Response(object):
return False
return True
def iter_content(self, chunk_size=10 * 1024, decode_unicode=False):
def iter_content(self, chunk_size=1, decode_unicode=False):
"""Iterates over the response data. This avoids reading the content
at once into memory for large responses. The chunk size is the number
of bytes it should read into memory. This is not necessarily the