Ticket #10687: multipartparser.py.diff
File multipartparser.py.diff, 747 bytes (added by , 16 years ago) |
---|
-
django/http/multipartparser.py
84 84 85 85 # For compatibility with low-level network APIs (with 32-bit integers), 86 86 # the chunk size should be < 2^31, but still divisible by 4. 87 self._chunk_size = min(2**31-4, *[x.chunk_size for x in upload_handlers if x.chunk_size]) 87 self._chunk_size = 2**31-4 88 if upload_handlers: 89 self._chunk_size = min(self._chunk_size, *[x.chunk_size for x in upload_handlers if x.chunk_size]) 88 90 89 91 self._meta = META 90 92 self._encoding = encoding or settings.DEFAULT_CHARSET