mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
This commit is contained in:
parent
4a696bbe13
commit
5c63b3e5a7
3 changed files with 8 additions and 1 deletions
|
@ -104,6 +104,10 @@ class DataUploadMaxMemorySizeGetTests(SimpleTestCase):
|
|||
with self.settings(DATA_UPLOAD_MAX_MEMORY_SIZE=None):
|
||||
self.request.body
|
||||
|
||||
def test_empty_content_length(self):
|
||||
self.request.environ['CONTENT_LENGTH'] = ''
|
||||
self.request.body
|
||||
|
||||
|
||||
class DataUploadMaxNumberOfFieldsGet(SimpleTestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue