diff options
| author | Tim Graham <timograham@gmail.com> | 2016-08-03 12:46:57 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-03 13:12:40 -0400 |
| commit | 5c63b3e5a797102d915e1683971517f747a28013 (patch) | |
| tree | 789eb4d55cb67eeebb7c8fe002fe1d4c22dabbcc /tests/requests/test_data_upload_settings.py | |
| parent | 4a696bbe13383b14b2762cc5accd45849e9dcfba (diff) | |
Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
Diffstat (limited to 'tests/requests/test_data_upload_settings.py')
| -rw-r--r-- | tests/requests/test_data_upload_settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/requests/test_data_upload_settings.py b/tests/requests/test_data_upload_settings.py index 8855e13336..f60f1850ea 100644 --- a/tests/requests/test_data_upload_settings.py +++ b/tests/requests/test_data_upload_settings.py @@ -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): |
