Skip to content
Myr

default chunk size for .content much bigger

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 53d60ca · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
39 unmodified lines
40except ImportError:41 pass4243REDIRECT_STATI = (codes.moved, codes.found, codes.other, codes.temporary_moved)44CONTENT_CHUNK_SIZE = 10 * 1024454546class Request(object):47 """The :class:`Request <Request>` object. It carries out all functionality of48 Requests. Recommended interface is with the Requests functions.49 """
725 unmodified lines
775776 if self.status_code is 0:777 self._content = None778 else:779 self._content = bytes().join(self.iter_content()) or bytes()779 self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()780781 except AttributeError:782 self._content = None783
64 unmodified lines