summaryrefslogtreecommitdiff
path: root/tests
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 14:01:08 -0400
commitdcebeea2703322bc53c511bf3cff9e3c2e04d802 (patch)
tree3985a8cf6eac12c37327ba97ddaff507b8e3bb83 /tests
parent348406c381f8f574bcc4c74c62279060010ae35f (diff)
[1.10.x] Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
Backport of 5c63b3e5a797102d915e1683971517f747a28013 from master
Diffstat (limited to 'tests')
-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):