summaryrefslogtreecommitdiff
path: root/tests/requests/test_data_upload_settings.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-03 12:46:57 -0400
committerTim Graham <timograham@gmail.com>2016-08-03 13:12:40 -0400
commit5c63b3e5a797102d915e1683971517f747a28013 (patch)
tree789eb4d55cb67eeebb7c8fe002fe1d4c22dabbcc /tests/requests/test_data_upload_settings.py
parent4a696bbe13383b14b2762cc5accd45849e9dcfba (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.py4
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):